How do I access data in control blocks such as jobname?
Answer Posted / 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 |
Post New Answer View All Answers
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.
What are the functions available in rexx?
What is the difference between ooRexx and IBM's Object REXX for Windows?
can I redistribute oorexx freely with commercial software?
Can I cleanly uninstall oorexx?
can I port my existing applications from the mainframe or os/2? Will there be extensive changes required to do this?
how long does the install of oorexx take?
can oorexx run ibm object rexx programs?
is there an aix version of oorexx?
have you already used rexx - even for limited purposes? Do you need to maintain a high level of productivity during your transition to unix?
how to access data in control blocks such as jobname?
What is the use of uni-rexx?
can oorexx run normal rexx programs?
does uni-rexx give me any capabilities designed specifically for the unix environment?
How to code the db2 queries using rexx?