|
View previous topic :: View next topic
|
| Author |
Message |
sun_job
New User

Joined: 18 Sep 2007 Posts: 73 Location: Bangalore
|
|
|
|
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 |
|
 |
Aaru
Senior Member

Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
| Back to top |
|
 |
stodolas
Active Member

Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
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 |
|
 |
Marso
REXX Moderator

Joined: 13 Mar 2006 Posts: 1356 Location: Israel
|
|
|
|
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 |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
| Quote: |
| but I can't give it here (enrico would be very angry at me). |
Now You make me curious
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 |
|
 |
|
|