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


Please Help Members By Posting Answers For Below Questions

Can I combine uni-REXX with a compiled language in my application? What application programming interfaces are available? For example, can I share variables between uni-REXX and a compiled language?

670


what is uni-rexx?

765


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

1752


is oorexx compatible with ibm object rexx?

769


What are various loop types supported by rexx?

707


If I have limited experience with Rexx or it's been a long time since I've used it, what kind of help is available to get me started?

698


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.

5297


can oorexx run ibm object rexx programs?

753


Enlist the features of rexx as a programming language.

762


What is the use of uni-rexx?

700


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

748


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?

682


is there an aix version of oorexx?

738


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

737


is oorexx compatible with rexx?

712