Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
REXX routine to save in VIEW mode

 
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: Thu Jan 03, 2008 4:14 pm    Post subject: REXX routine to save in VIEW mode
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: 1288
Location: Chennai, India

PostPosted: Thu Jan 03, 2008 4:19 pm    Post subject: Reply to: REXX routine to save in VIEW mode
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: 632
Location: Wisconsin

PostPosted: Thu Jan 03, 2008 6:12 pm    Post subject:
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: 1243
Location: Israel

PostPosted: Thu Jan 03, 2008 9:40 pm    Post subject: Re: Reply to: REXX routine to save in VIEW mode
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Jan 03, 2008 10:04 pm    Post subject: Reply to: REXX routine to save in VIEW mode
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us