Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading dataset from JCL in REXX program

Status
Not open for further replies.

bobby510

Programmer
Jun 29, 2009
1
IN
Could you please tell how to read datasets from JCL in Rexx program?
 
The JCL says
Code:
//DATAIN   DD  DSN=FRED.ACCOUNT.DATA,DISP=SHR
Your REXX says
Code:
address TSO
"NEWSTACK"
"EXECIO * DISKR DATAIN (FINIS"
do queued()
   pull key 9 first 33 36 second 55 58 third 92 .
       /* or whatever parsing is appropriate to the data */
end     /* queued */
"DELSTACK"

Frank Clarke
--America's source for adverse opinions since 1943.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top