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

To edit 'lines cut frm DS' before pasting them in same DS


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

New User


Joined: 08 Jan 2011
Posts: 16
Location: India

PostPosted: Sat Feb 12, 2011 1:44 pm
Reply with quote

Hi,

I have a requirement and facing a problem in a part of it.

I have retreived the GDG DS names from the DS macro is called. Now using Skeleton, I am creating a JCL which will create GDG Bases if the user submits it.
The Macro will create steps in a FINAL JCL and finally open it in EDIT mode in front of user to submit it manually if he wants.

Now, I am able to get the skeleton data and put it in a FINAL JCL DS and able to make it ready for first GDG base step. Now, when the macro encounters the second GDG DS. It will pick the DS name and then open the same FINAL JCL DS in edit mode and append one more step for the GDG DS found.

Below is the code I am trying to use. But instead of performing cut/paste in FINAL JCL DS. It is doing it in the DS from where macro is getting called.

Code:

ADDRESS ISREDIT       
"F EXEC LAST"             
"LABEL .ZCSR = .A"     
"LABEL .ZL = .B"       
"CUT .A .B"           
"PASTE AFTER .ZL"     
"SAVE"                 
"END"                 


JCL in above code is the FINAL DS NAME.

One more thing, before "PASTE AFTER .ZL" It has to edit the DS name. Please suggest the commands that can be used for that also.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Feb 12, 2011 3:30 pm
Reply with quote

1) ISPF file tailoring is oh so much better than building instream JCL

2) Why not just build the GDG bases from the REXX rather than submitting a job

3) This, or similar has been discussed already on the forum
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Feb 12, 2011 3:32 pm
Reply with quote

RE point 1 above, using the GDG base names from a stem

Code:
"ISPEXEC FTOPEN"
"ISPEXEC FTINCL BASEJCL"
DO AA = 1 TO STEM.0
  "ISPEXEC FTINCL BUILDGDG"
END
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Need help to resolve a hard edit COBOL Programming 8
This topic is locked: you cannot edit posts or make replies. Need help to resolve a hard edit COBOL Programming 4
No new posts create rexx edit Macro that edits the... CLIST & REXX 3
Search our Forums:

Back to Top