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



i want to code a rexx program in order to get the inputfile and output files of jcl. i want code ..

Answer / 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

More REXX Interview Questions

When will a port of ooRexx to "XYZ" be available?

0 Answers  


i'm getting error while editing macro, its not even entering into the macro, getting error like 31 *-* "EDIT DATASET('"DSN"("MEM")') MACRO("CHGLINE")" +++ RC(-3) +++ ? any idea why?

1 Answers  


does uni-rexx give me any capabilities designed specifically for the unix environment?

0 Answers   IBM,


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

2 Answers  


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

0 Answers   IBM,






can oorexx run normal rexx programs?

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  


What are various loop types supported by rexx?

0 Answers  


How to code the db2 queries using rexx?

0 Answers  


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. e.g - The value of X is Y. Wot is its value? Do u know its value? I want to know its value.

1 Answers  


can I port my existing applications from the mainframe or os/2? Will there be extensive changes required to do this?

0 Answers   IBM,


Is it possible to combine uni-rexx with a compiled language in any application? What applications interfaces are there?

0 Answers  


Categories