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
 

 

Problem in ISPF EDIT macro

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
smilingashutosh

New User


Joined: 08 Jun 2006
Posts: 22

PostPosted: Tue Oct 03, 2006 11:37 am    Post subject: Problem in ISPF EDIT macro
Reply with quote

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
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Oct 03, 2006 1:43 pm    Post subject:
Reply with quote

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
View user's profile Send private message
smilingashutosh

New User


Joined: 08 Jun 2006
Posts: 22

PostPosted: Tue Oct 03, 2006 6:46 pm    Post subject: Re: Problem in ISPF EDIT macro
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Oct 03, 2006 7:14 pm    Post subject:
Reply with quote

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
View user's profile Send private message
smilingashutosh

New User


Joined: 08 Jun 2006
Posts: 22

PostPosted: Wed Oct 04, 2006 11:38 am    Post subject: Re: Problem in ISPF EDIT macro
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Oct 04, 2006 12:42 pm    Post subject:
Reply with quote

The EDIT service is described in the fine manual.

O.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm


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