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 )
/* EDIT MACRO */
/* THIS MACRO CAN BE USED TO SAVE A MEMBER/PS IN VIEW MODE */
"ISREDIT (DATASET) = DATASET"
"ISREDIT (MEMBER) = MEMBER"
IF MEMBER = '' THEN
"ISREDIT REPLACE .ZF .ZL "DATASET
"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
'DATASET' insted of the name of dataset/member.