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

I want to set position for a particular text in a certain position in several of my cics maps.Please provide me with a solution. Ex: If "F1-Help" has to be set to pos(4,27) always in all the maps within a PDS.

2015


How to code the db2 queries using rexx, and also plz send some link and examples using db2 queries?

640


Can I cleanly uninstall oorexx?

641


How to find or access the current level of a gdg?

547


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

666






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.)

2869


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

1679


Can anyone provide me the source code for LOC(lines of code) counter written in REXX language which can run on IBM mainframe z/OS V1R4. The LOC counter should be able to count the comments,lines of code,blank lines in a COBOL program and JCL's

2184


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

622


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

629


what is uni-rexx?

685


how to access data held on the jes spool?

741


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

637


for which platforms is uni-rexx available?

645


What are various loop types supported by rexx?

607