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

REXX routine to save in VIEW mode


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

New User


Joined: 18 Sep 2007
Posts: 73
Location: Bangalore

PostPosted: Thu Jan 03, 2008 4:14 pm
Reply with quote

Hi

Is there any one who can give me some code snippet of REXX , which i can save a member when am editing in VIEW mode?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Jan 03, 2008 4:19 pm
Reply with quote

Sun,

Check this topic

http://ibmmainframes.com/viewtopic.php?t=27174
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 631
Location: Wisconsin

PostPosted: Thu Jan 03, 2008 6:12 pm
Reply with quote

Why are you insisting on saving in view mode? This is the 2nd topic you have posted on it. Aaru just pointed you back to your other post. The general advice has been DON'T DO THIS! Use the command REPLACE and you can overwrite the file you are working on just fine. Use CREATE to make it a new file.

What is the issue here, are you lazy and just want to press F3 or type SAVE instead of the longer word REPLACE?
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1356
Location: Israel

PostPosted: Thu Jan 03, 2008 9:40 pm
Reply with quote

Aaru wrote:
Check this topic
http://ibmmainframes.com/viewtopic.php?t=27174
Yes, that's THE thread...

Anyway, in your REXX program you do Address ISPEXEC "VIEW DATASET(name)" and that launches the version of VIEW that do not accept SAVE.

Use Address ISPEXEC "EDIT DATASET(name)" instead.
If you want to change some options or do some process on the file,
write a small macro and use: Address ISPEXEC "EDIT DATASET(name) MACRO(yourmacro)"

Of course, there is a way to launch the "enhanced" VIEW, but I can't give it here (enrico would be very angry at me).
If you must use VIEW, PM me and i'll tell you how.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Thu Jan 03, 2008 10:04 pm
Reply with quote

Quote:
but I can't give it here (enrico would be very angry at me).


Now You make me curious icon_biggrin.gif

I know it can be done...
I wrote a macro to issue something like ( replace myself .zf .zl )
but later on I found more practical
to use always "EDIT" with a default initial macro to turn
AUTOSAVE OFF and RECOVERY ON ( to prevent finger checks )

the only reason to use VIEW from 3.4 is just ... laziness
( it will be automatically transformed in BROWSE for unsupported datasets)
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Trouble using REXX SDSF interface to ... CLIST & REXX 3
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Instream REXX? JCL & VSAM 13
No new posts CEMT using Rexx? Help please CLIST & REXX 3
No new posts get submitted JCL from SDSF with REXX... CLIST & REXX 2
Search our Forums:


Back to Top