How do I access data in control blocks such as jobname?



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

Post New Answer

More REXX Interview Questions

How do I find or access the current level of a GDG?

2 Answers  


how to access data in control blocks such as jobname?

0 Answers   IBM,


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.

0 Answers  


how to access data held on the jes spool?

0 Answers   IBM,


why is there no os/2 (ecs) port of oorexx?

0 Answers   IBM,






is there an aix version of oorexx?

0 Answers   IBM,


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.)

0 Answers   Mind Tree,


i want new rexx tool which will perform jcl chk without submitting it

0 Answers  


How to code the db2 queries using rexx, and also plz send some link and examples using db2 queries?

0 Answers  


What are various loop types supported by rexx?

0 Answers  


is oorexx compatible with ibm object rexx?

0 Answers   IBM,


How do I access data in control blocks such as jobname?

1 Answers  


Categories