I know I can save the changes in view mode by replace .zf .zl membername.
To avoid typing this everytime;I thought of having an ISPF EDIT macro.
So I put following macro (got from some forum )
/*REXX */
/* EDIT MACRO */
/* THIS MACRO CAN BE USED TO SAVE A MEMBER/PS IN VIEW MODE */
"ISREDIT MACRO"
"ISREDIT (DATASET) = DATASET"
"ISREDIT (MEMBER) = MEMBER"
DATASET="'"||DATASET||"'"
SAY DATASET
IF MEMBER = '' THEN
"ISREDIT REPLACE .ZF .ZL "DATASET
ELSE
"ISREDIT REPLACE .ZF .ZL "MEMBER
/* EDIT MACRO */
/* THIS MACRO CAN BE USED TO SAVE A MEMBER/PS IN VIEW MODE */
"ISREDIT MACRO"
"ISREDIT (DATASET) = DATASET"
"ISREDIT (MEMBER) = MEMBER"
DATASET="'"||DATASET||"'"
SAY DATASET
IF MEMBER = '' THEN
"ISREDIT REPLACE .ZF .ZL "DATASET
ELSE
"ISREDIT REPLACE .ZF .ZL "MEMBER
Though this code is not giving any error ; it's not doing the expected job too.
Also the result of
SAY DATASET
is
'DATASET' insted of the name of dataset/member.
Please suggest.