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

copy the mem2 jcl code in to the mem1 without CUT & PAST


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

New User


Joined: 04 Apr 2006
Posts: 86
Location: Hyderabad

PostPosted: Thu Oct 26, 2006 4:03 pm
Reply with quote

hi,

I have Two JCL members(mem1 & mem2) in my PDS. I want to copy the mem2 jcl code in to the mem1.

This same thing I have to do many times for different memebers.

IS there any easy method to do this apart from CUT and PASTE.

Is there any command to copy the entire code of MEM1 into MEM2?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Oct 26, 2006 4:08 pm
Reply with quote

mahi wrote:
Is there any command to copy the entire code of MEM1 into MEM2?


Um, COPY? As in COPY MEM1.
Back to top
View user's profile Send private message
mahi

New User


Joined: 04 Apr 2006
Posts: 86
Location: Hyderabad

PostPosted: Thu Oct 26, 2006 4:44 pm
Reply with quote

I want to append MEM1 CODE to MEM2 code..
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Oct 26, 2006 5:03 pm
Reply with quote

Go into MEM2, mark A at the target line, and supply the command COPY MEM1.

O.
Back to top
View user's profile Send private message
mahi

New User


Joined: 04 Apr 2006
Posts: 86
Location: Hyderabad

PostPosted: Thu Oct 26, 2006 5:21 pm
Reply with quote

Thank You ..
It is working fine..
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Oct 26, 2006 5:41 pm
Reply with quote

If you don't want to mark a line, and you just want to append it to the end of MEM2, you can try the following command: COPY MEM1 AFTER .ZLAST

O.
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
Search our Forums:

Back to Top