View previous topic :: View next topic |
Author |
Message |
jim haire Beginner
Joined: 30 Dec 2002 Posts: 140 Topics: 40
|
Posted: Wed Sep 10, 2008 1:47 pm Post subject: |
|
|
This should work:
Code: |
/* REXX */
/* Determine dataset & member names */
ADDRESS ISPEXEC
"ISREDIT MACRO"
"ISREDIT (CURRDSET) = DATASET"
"ISREDIT (CURRMBR) = MEMBER"
/* Build the full dataset name */
IF MEMBER > " " THEN
FULL_NAME = CURRDSET || "(" || CURRMBR || ")"
ELSE
FULL_NAME = CURRDSET
/* Allocate the dataset name to DDNAME DSET */
ADDRESS TSO
"ALLOC DA('"FULL_NAME"') F(DSET) SHR"
/* Write the lines from the dataset to stem MYSTEM.*/
"EXECIO * DISKR DSET (STEM MYSTEM. FINIS"
/* Free the dataset.*/
"FREE F(DSET)"
/* Show what was written to the stem.*/
DO I = 1 TO MYSTEM.0
SAY MYSTEM.I
END
EXIT |
|
|
Back to top |
|
 |
cyberuser Beginner
Joined: 15 Oct 2005 Posts: 29 Topics: 12
|
Posted: Wed Sep 10, 2008 5:31 pm Post subject: |
|
|
thanks jim haire !!
i got the workaround concept ! it worked perfectly ! |
|
Back to top |
|
 |
|
|