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
 

 

JCL TO COPY a member from a PDS to the same PDS

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

New User


Joined: 29 Sep 2011
Posts: 2
Location: india

PostPosted: Thu Dec 22, 2011 11:13 am    Post subject: JCL TO COPY a member from a PDS to the same PDS
Reply with quote

Hi ,
My requirement is to copy a member from a pds to the same PDS with a different name.

My pds name - JACOB.P00.COBOL- member name is ADD.
I need to copy this member alone to same PDS (JACOB.P00.COBOL) with a different name ADD1.

Can any one please help me how to do this.
Back to top
View user's profile Send private message

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Dec 22, 2011 11:28 am    Post subject:
Reply with quote

Hi,

try this
Code:
//STEP01   EXEC PGM=IEBCOPY                                   
//SYSPRINT DD SYSOUT=*                                       
//SYSUT3   DD UNIT=SYSDA,SPACE=(CYL,(2,1))                   
//SYSUT4   DD UNIT=SYSDA,SPACE=(CYL,(2,1))                   
//IN       DD DSN=JACOB.P00.COBOL,                           
//            DISP=SHR                                       
//SYSIN    DD *                                               
 COPY INDD=(IN),OUTDD=IN                                     
 S M=((ADD,ADD1,R))                                           
/*                                                           


Gerry
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Dec 22, 2011 11:28 am    Post subject:
Reply with quote

Hello and welcome to the forum,

If you only have one member, suggest you do this online.
Back to top
View user's profile Send private message
Jacob Jose

New User


Joined: 29 Sep 2011
Posts: 2
Location: india

PostPosted: Thu Dec 22, 2011 11:41 am    Post subject: Reply to: JCL TO COPY a member from a PDS to the same PDS
Reply with quote

My intention is to create a tool which will be running in Different regions.
Many Thanks for giving me a fast a perfect reply.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1787
Location: UK

PostPosted: Thu Dec 22, 2011 11:58 am    Post subject:
Reply with quote

Suggest you become familiar with the Utilities manual.
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 member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am


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