View previous topic :: View next topic
|
Author |
Message |
smilingashutosh
New User
Joined: 08 Jun 2006 Posts: 22
|
|
|
|
Hi all,
can anybody let me know what is wrong with is rexx program,
the file is opening in edit mode but cut portion is not geting paste on to that, what should be the reason?
Code: |
/* REXX */
ADDRESS ISREDIT "MACRO"
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"
X = SYSDSN("'NBK7VYS.MYBACK.FILE'")
IF X = 'OK' THEN
DO
ADDRESS ISREDIT "CUT .ZFIRST .ZLAST"
ADDRESS ISREDIT "END"
ADDRESS ISREDIT "END"
ADDRESS TSO
"ISREPDF 'NBK7VYS.MYBACK1.FILE(XX)' "
ADDRESS ISREDIT "SAVE"
ADDRESS ISREDIT "PASTE AFTER .ZFIRST"
ADDRESS ISREDIT "SAVE"
EXIT
END
|
|
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
As far as I can see, you have ISREDIT commands (SAVE, PASTE) after you issued the END command. The END command closes the edit session, thus subsequent edit commands are not valid.
O. |
|
Back to top |
|
|
smilingashutosh
New User
Joined: 08 Jun 2006 Posts: 22
|
|
|
|
hi offer,
offer, i want to take backup of dataset for on which this macro will execute.
Actually i want to paste it on the dataset which i opened by using isrepdf command, i don't want to paste it on the dataset for which i want to take backup.if i don't use end command it will get pasted on that dataset.any solution? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Yes. Instead ISREPDF use the EDIT service with the MACRO option.
If I'm not mistaken, ISREPDF also accepts a MACRO parameter...).
O. |
|
Back to top |
|
|
smilingashutosh
New User
Joined: 08 Jun 2006 Posts: 22
|
|
|
|
hi offer ,
can you please let us know how edit session is launched or how to code edit macro for the same. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
Back to top |
|
|
|