You are trying to use it where? The fact that it shows in red implies you are in the wrong place or at least on the wrong path. Why don't you let us know what you are trying to accomplish, what your goal in all of this is?
-craig
"You can never have too many knives" -- Logan Nine Fingers
Actually I am trying to get the metadata/ run-time inforamtion of a partiular job. Basically i am setting job_handler for a job and by using this job handler i am trying to get the information of that job.
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.
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.
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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.