In order to read the dataset and member name of the opened member, use the following REXX code.
After executing this REXX code, the variable PDSNAME will contain the Dataset Name and Member will contain the member name. If the same REXX is applied to a PS file, then PS file name will be stored in variable PDSNAME and Member name will be empty.
/*REXX*/
"ISPEXEC CONTROL ERRORS RETURN"
"ISREDIT MACRO (PARMS) NOPROCESS"
"ISREDIT (PDSNAME) = DATASET"
"ISREDIT (MEMBER) = MEMBER"
Subscribe to:
Post Comments (Atom)
Featured Post
REXX Skeleton: Submitting jobs through Rexx
Submitting jobs through REXX and reading the spool through REXX gives us immense potential to automate many manual activities in mainframes....
-
Abend S013 SYSTEM COMPLETION CODE=013 REASON CODE=00000018 AN OPEN WAS ISSUED FOR A PARTITIONED DATASET. THE SPECIFIED MEMBER NAME WAS N...
-
A word is defined as a blank delimited set of characters within a string in REXX. The characters in a word can be alpha, numeric, alphanume...
-
String functions interrogate, compare, and manipulate character strings of data. Some of the built-in function are listed below: COPIES...
No comments:
Post a Comment