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

Enlist the features of rexx as a programming language.

0 Answers  


for which platforms is uni-rexx available?

0 Answers   IBM,


how to pass parms to ispf edit macro?

0 Answers   IBM,


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

0 Answers   IBM,


how to access data in control blocks such as jobname?

0 Answers   IBM,


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?

0 Answers  


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?

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,


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?

0 Answers  


have you already used rexx - even for limited purposes? Do you need to maintain a high level of productivity during your transition to unix?

0 Answers   IBM,


What is the use of uni-rexx?

0 Answers  


I want to code a REXX Program in order to load many tables in a database simultaneously in a batch fashion. Currently batch codes ar available in which only one job is submitted at a time and this loads only one table. My requirement is that many tables should be loaded at a time when one Job is submitted and can this be done using REXX Tool??? I want code snippet or the coding for this , please

1 Answers  


Categories