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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1702
Location: Australia

PostPosted: Thu Dec 22, 2011 11:28 am
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

Moderator Emeritus


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

PostPosted: Thu Dec 22, 2011 11:28 am
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
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: 2455
Location: Hampshire, UK

PostPosted: Thu Dec 22, 2011 11:58 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top