Folks,
I am trying to use DSAttachJob Function to attach a job.
"DSAttachJob('test',DSJ.ERRFATAL)" where test is the name of the job.
I even tried appending version to the jobname.
But it is still showing in RED.
Please help me out.
Thanks in aAdvance
Rajesh
regarding DSattachjob
Moderators: chulett, rschirm, roy
This routine is not meant to be called for each row in a transform stage; it will show in red in a Transform because it is not defined in the list of valid functions. DSAttachJob and the other DS... functions documented in the BASIC manual are meant to be used from within your own routines.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Yes, the value is correct; the comment in the documentation is meant to avoid programmers checking the validity of the variable using integer conditions (i.e. FileHandle < 1). You should use the documented methods in the routine description to detect if the call was successful.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It may currently be an integer but "they" reserve the right to change it (for example to a pointer to a structure). Currently it's a row number in a table of pointers to structures.
No, you can not have access to that table.
Treat it like any other opaque variable (file handle, subroutine handle, connection handle, etc.) You are likely to get caught out badly if you rely on the integer nature of a job handle.
No, you can not have access to that table.
Treat it like any other opaque variable (file handle, subroutine handle, connection handle, etc.) You are likely to get caught out badly if you rely on the integer nature of a job handle.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.