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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ispf editor commands on dataset.

Status
Not open for further replies.

binoy123

Programmer
Sep 26, 2003
4
IN
Hi ,

I would like some one to help me with
writing a rexx program which will run
the following commands on a couple of dataset.

X all;F all '0' 1;F all '1' 1;
F all ' ' 1 ;F all '-*' 1
Del all X ;save

and if possible please suggest any reference.
Thanks
Brij


 
Write an ISPF MACRO to do it like this;
Address 'ISREDIT'
"MACRO"
"X ALL"
"F '0' 1 ALL"
"F '1' 1 ALL"
"F ' ' 1 ALL"
"F '-*' 1 ALL"
"DEL X ALL"
"END"


Then write a REXX to edit all the datasets / members and do this;
Address 'ISPEXEC' "Edit Dataset('"my.data.set"') Macro(MYMACRO)"


where MYMACRO is the macro created earlier.
 
Another option to calling the ISPF MACRO is when you are editing a dataset or PDS member. Just type the name of the macro on the command line and it will execute...
in the above example you would just type

MYMACRO

on the command line and away it goes.

Note that macro is saved in the same PDS as your REXX Exec's

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top