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

I want to remove a duplicates form a given input field using rexx program. please Any one help me out to solve this ... Thanks in Advance.

1 Answers  


What is the difference between ooRexx and IBM's Object REXX for Windows?

0 Answers  


How do I pass parms to my ISPF Edit macro

2 Answers   Wipro,


is oorexx compatible with ibm object rexx?

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 do I access data in control blocks such as jobname?

1 Answers  


How do I Run My Rexx Exec.?

2 Answers  


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

0 Answers  


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

0 Answers  


What is the use of uni-rexx?

0 Answers  


what is uni-rexx?

0 Answers   IBM,


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

0 Answers   IBM,


Categories