i want to code a rexx program in order to get the inputfile
and output files of jcl. i want code snippet or the coding
for this , please
Answer Posted / albert n
If you know the ddnames of the files being used, then you
can get the infor via the LISTDSI function.
rc = LISTDSI( ddname "FILE")
If the rc = 0 then the dsname is in de variable SYSDSNAME.
If you do not know the ddnames of the files allocated to
your program, you can get the information via TSO with:
Address TSO "LISTA" or Address TSO "LISTA STATUS"
Set up OUTTRAP first so you can capture the output and via
REXX scroll through it.
The difference between LISTA and LISTA STATUS is that LISTA
will only give the datasetnames of all allocated datasets.
LISTA STATUS will give you the ddname followed by all
datasets that are allocated to the ddname for all the
datasets.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to access data in control blocks such as jobname?
What is the use of uni-rexx?
What is the difference between ooRexx and IBM's Object REXX for Windows?
Suppose if there are a set of statements and each has a word “value” in it, if I want to display all these statements so that the word “value” is aligned, then how do I code this in rexx?
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.)
What are the various error conditions seen in rexx?
I executed one job and I forget to save the final JCL. But took an XDC from SPOOL. Now I want to recover the JCL from XDC dataset. Is there any process to do this?. (Manually it takes a lot of time). Is there
is there an aix version of oorexx?
How to code the db2 queries using rexx?
How to find or access the current level of a gdg?
How to code the db2 queries using rexx, and also plz send some link and examples using db2 queries?
what if I need to have the same application running on multiple platforms, such as unix and the mainframe? Does that mean I have to maintain two separate sources?
What are the functions available in rexx?
for which platforms is uni-rexx available?
Suppose I want to code a rexx program in order to get the inputfile and output files of jcl. I want code snippet or the coding for this?