IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to save in view Mode


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
richie

New User


Joined: 11 Jun 2005
Posts: 24

PostPosted: Tue Nov 22, 2005 12:00 pm
Reply with quote

Please tell me the command to save the changes in View Mode.
Back to top
View user's profile Send private message
sridevi2005

New User


Joined: 15 Sep 2005
Posts: 42

PostPosted: Tue Nov 22, 2005 3:02 pm
Reply with quote

Hi,

To save the data in view mode use the following command.

Rep .zf .zl member name

OR
replace .zf .zl member name.

Thanks,
Sridevi
Back to top
View user's profile Send private message
Phantom

New User


Joined: 04 Sep 2005
Posts: 25

PostPosted: Tue Nov 22, 2005 3:47 pm
Reply with quote

Richie,

Lazy Guys like Me! don't have the patience to type "REPL .ZF .ZL xxxxx". Instead I have coded a small REXX Macro with the Name "VSAVE" as shown below. This will take care of both PS as well as PDS-Member.

Now, I just have to use VSAVE instead of the ISPF Save command to save the code in View mode.

Code:

/* 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||"'"                                   
IF Member = '' THEN                                         
   "ISREDIT replace .zf .zl "DataSet                         
ELSE                                                         
   "ISREDIT replace .zf .zl "Member                         


Hope this helps,

Thanks,
Phantom
Back to top
View user's profile Send private message
UMAPATHY MARGABANDU

New User


Joined: 24 Jan 2011
Posts: 3
Location: india

PostPosted: Mon Jan 24, 2011 9:41 pm
Reply with quote

Hi All,

Most of them think that it is not possible to save to view mode. But in Mainframes, we are having option to save in view mode also.

Use the following Command in the command line ====>

1. REPL .ZF .ZL <ENTER>
2. Enter the name of the dataset along with the member name.

For Example, 'TRGR47.SAMPLE.PROGRAMS(ADDITION)'

3. Press <ENTER>
4. It will show the confirmation that the dataset is changed.

Explanation :

REPL -> REPLACE
.ZF -> FROM FIRST
.ZL -> FROM LAST
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jan 24, 2011 9:50 pm
Reply with quote

UMAPATHY MARGABANDU, any particular reason you decided -- AFTER MORE THAN 5 YEARS -- to basically replicate the information already provided?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts SET PATH in View DDL DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top