Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Save in VIEW mode
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sun_job

New User


Joined: 18 Sep 2007
Posts: 73
Location: Bangalore

PostPosted: Wed Jan 02, 2008 3:56 pm    Post subject: Save in VIEW mode
Reply with quote

How can we save a member in view mode using a macro?
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Wed Jan 02, 2008 4:05 pm    Post subject:
Reply with quote

Code:
ISREDIT (CHGST) = DATA_CHANGED                                           
  IF &CHGST = YES THEN ISREDIT BUILTIN SAVE 


But your env.., should support SAVE in VIEW mode.
Back to top
View user's profile Send private message
sun_job

New User


Joined: 18 Sep 2007
Posts: 73
Location: Bangalore

PostPosted: Wed Jan 02, 2008 4:58 pm    Post subject: Hi
Reply with quote

Thanks a lot gnanas
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jan 02, 2008 7:07 pm    Post subject:
Reply with quote

I am using ISPF 5.2. This version of ISPF still tells you to use REPLACE or CREATE when you wish to save the VIEW Session.
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Wed Jan 02, 2008 7:11 pm    Post subject:
Reply with quote

But I can SAVE in VIEW mode. I am using ISPF 5.8
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Wed Jan 02, 2008 7:37 pm    Post subject: Reply to: Save in VIEW mode
Reply with quote

Quote:
But I can SAVE in VIEW mode. I am using ISPF 5.8


Thats strange...

it' s against ISPF logic of view..
the manuals are clear YOU can do all You do in EDIT but... save
the objective is to let You use edit macros as in edit and then avoid saving the template...

the logic flow is
enter in view mode some "template"
run some edit macro...
submit/save somewhere else the customized data

If You can save, please, tell us where is the difference from edit
and meditate about a fouled up environment ( seeking for troubles )[/quote]
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jan 02, 2008 7:40 pm    Post subject:
Reply with quote

Quote:
But I can SAVE in VIEW mode. I am using ISPF 5.8

I don't know then why 'that' mode is called as VIEW?
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Wed Jan 02, 2008 8:11 pm    Post subject:
Reply with quote

Let's see your screen showing VIEW and SAVED.
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Wed Jan 02, 2008 8:21 pm    Post subject:
Reply with quote

Env., Setting is like that.

In my shop,
In VIEW mode, if I issue SAVE, it will ask a confirmnation to proceed for Saving. If it is EDIT mode, no confirmation...

If I issue CANCEL or press F3 when changes are done in VIEW mode, it will ask a confirmation to not to Save.

Why it is, I don't know. In my training also, I used to SAVE in VIEW mode if needed.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jan 02, 2008 8:38 pm    Post subject:
Reply with quote

I think that's an in-house macro, check the SAVE member in XXX.USER.SPFCLIST (where XXX represnts your test node.). In my shop there is a macro VSAVE to save in view mode, but rarely I use it.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Wed Jan 02, 2008 8:38 pm    Post subject: Reply to: Save in VIEW mode
Reply with quote

from z/OS V1R9.0 ISPF User' s Guide VOL ii

Quote:
This option enables you to view or browse source data and listings stored in ISPF libraries, other partitioned or single-volume or multivolume
| sequential data sets, or z/OS UNIX files .

View
Allows you to use all Edit line commands, primary commands, and macros to manipulate the data. View functions exactly like Edit, with the exception of these primary commands:

SAVE
When you enter the SAVE command, ISPF issues a message that you must use the CREATE command to save any data you have changed.

END
When you enter the END command, ISPF terminates the View function; no data changes are saved.

Browse
Allows you to use the Browse primary commands described in "Browse primary commands" in topic 3.3.2 to manipulate data.

View is enabled by default. You can disable View, thus allowing only Browse, by modifying the ISPF Configuration Table. You must set the keyword IS_VIEW_SUPPORTED to NO. For more information, see the topic about the ISPF Configuration Table in z/OS ISPF Planning and Customizing.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Wed Jan 02, 2008 9:11 pm    Post subject:
Reply with quote

I think the SAVE in VIEW is a SPIFFY enhancement.
When I view a file from 3.4, I can save it too,
but if I view it from an exec (Address ISPEXEC VIEW), I cannot !
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Wed Jan 02, 2008 11:57 pm    Post subject:
Reply with quote

I think it's a terrible idea.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Jan 03, 2008 12:15 am    Post subject:
Reply with quote

Agreed, terrible idea. Use create or replace so you know that you are overwriting something that you may not have intended to overwrite.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Thu Jan 03, 2008 1:03 pm    Post subject: Reply to: Save in VIEW mode
Reply with quote

I agree to that too!
That's why I always use RECOVERY ON and AUTOSAVE OFF:
When I edit/view a file, if I see the warning message about recovery being off, I always change both options.
Like this, I minimize the risk of saving unwanted changes.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Jan 03, 2008 6:13 pm    Post subject:
Reply with quote

Quit being lazy and use the REPLACE command and specify the file you are working on. It will overwrite it with your new data.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Thu Jan 03, 2008 6:30 pm    Post subject: Reply to: Save in VIEW mode
Reply with quote

I do not understand why use VIEW if everybody wants to save

there is an option in the ispf edit settings profile
which asks for confirmation in order to save a modified member

enter "AUTOSAVE OFF" as a primary command
when hitting pf3 it will ask save/cancel

when typing save it will save

thats my usual setting
( quite often my fingers are faster than the brain and that' s a way of protecting myself)
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Jan 03, 2008 6:45 pm    Post subject: Re: Reply to: Save in VIEW mode
Reply with quote

enrico-sorichetti wrote:
I do not understand why use VIEW if everybody wants to save

Yeah..this is ..this is ..which is bothering me since the start of this thread.. icon_mad.gif
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Thu Jan 03, 2008 6:52 pm    Post subject:
Reply with quote

You might use VIEW when you do not want to save, but want certain Edit commands/capabilities that Browse does not have; e.g.:

1. line numbers on left
2. eXclude command
3. ability to Delete eXcluded lines for temporary clean viewing, but knowing that you have protected yourself from modifying the file
4. BND line command
5. CUT a set of lines to PASTE into another file, perhaps by flipping via F9 to another screen

I'm sure there are many other examples.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Thu Jan 03, 2008 6:55 pm    Post subject: Re: Reply to: Save in VIEW mode
Reply with quote

enrico-sorichetti wrote:
I do not understand why use VIEW if everybody wants to save


agree!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts save SAY var loop. italo_pm CLIST & REXX 3 Sun Sep 04, 2016 3:06 am
No new posts Help Needed with View Direct shailesh_do CA Products 2 Wed Jul 13, 2016 10:39 am
No new posts how to find clist's or view library Andrew Hsia CLIST & REXX 4 Tue Jun 28, 2016 6:07 pm
No new posts Report view in Mobile devices Robert Sample All Other Mainframe Topics 0 Thu Jun 23, 2016 7:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us