How do I access data in control blocks such as jobname?
Answer / shakila vinayagam
Use the Storage() function to extract the data from control
blocks.
/* REXX Get taskname from TCB */
cvt = storage(10,4) /* FLCCVT-PSA data area */
tcbp = storage(d2x(c2d(cvt)),4) /* CVTTCBP */
tcb = storage(d2x(c2d(tcbp)+4),4)
tiot = storage(d2x(c2d(tcb)+12),4) /* TCBTIO */
say strip(storage(d2x(c2d(tiot)),8)) /* TIOCNJOB */
Is This Answer Correct ? | 1 Yes | 1 No |
How do I find or access the current level of a GDG?
how to access data in control blocks such as jobname?
I just know the Panvalet dataset name, i would like to search all the members of that dataset for particular keyword through Rexx. how to achive? please suggest. Is it possible to open panvalet member in browse mode using Rexx? Your help would be appreciated very much. Thanks in advance.
how to access data held on the jes spool?
why is there no os/2 (ecs) port of oorexx?
is there an aix version of oorexx?
I want to open particular list of members inside pds.Let me know whether below code will work.if not tell me how it works INPUT='DDM.DATASET(AAA*)' X = OUTTRAP(MEMS.)
i want new rexx tool which will perform jcl chk without submitting it
How to code the db2 queries using rexx, and also plz send some link and examples using db2 queries?
What are various loop types supported by rexx?
is oorexx compatible with ibm object rexx?
How do I access data in control blocks such as jobname?