View previous topic :: View next topic
|
Author |
Message |
Jacob Jose
New User
Joined: 29 Sep 2011 Posts: 2 Location: india
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
If you only have one member, suggest you do this online. |
|
Back to top |
|
|
Jacob Jose
New User
Joined: 29 Sep 2011 Posts: 2 Location: india
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Suggest you become familiar with the Utilities manual. |
|
Back to top |
|
|
|