View previous topic :: View next topic
|
Author |
Message |
Prathap Pillai P
New User
Joined: 08 Sep 2005 Posts: 16
|
|
|
|
I want to move(not copy) some members from one PDS to another using JCl.Is there any utility to do the same?? |
|
Back to top |
|
|
vana
New User
Joined: 27 Jul 2006 Posts: 6
|
|
|
|
Hi,
U can use 3.3 utility option and use Move option
Move/Copy Utility
option ===> M
C Copy data set or member(s) CP Copy and print
M Move data set or member(s) MP Move and print |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi There,
U can do it using sort
Code: |
//COPY EXEC PGM=SORT
//SYSOUT DD SYSOUT=A
//SORTIN DD DSN=input data set,DISP=SHR
//SORTOUT DD DSN=output data set ,DISP=(NEW,CATLG.DLET)
dcb parameters
//SYSIN DD *
OPTION COPY
/* |
|
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Prathap,
There is nothing to move as such... you can copy specific members and delete later on.
1> Use IEBCOPY to copy selected members to another PDS.
2> Use IDCAMS to delete those members from earlier PDS. |
|
Back to top |
|
|
subbubannurutcs
New User
Joined: 15 Oct 2006 Posts: 11
|
|
|
|
Hi ekta,
I am not agree whatever u gave the reply. by using sort we can move or copy the data from input file to output file not for the members from one pds to other pds.if it is possible can u please explain clearly |
|
Back to top |
|
|
ihatesugar Warnings : 1 New User
Joined: 22 Oct 2006 Posts: 43
|
|
|
|
why would at first place u want to do it thru a JCL. is ur requirement such?
otherwise , just go to the PDS , Give m against the memeber u want to move... you'll then be prompted to enter the PDS where u want to move the member. .. give the PDS name and ur Member is moved to the desired PDS |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
Hi ekta,
I am not agree whatever u gave the reply. by using sort we can move or copy the data from input file to output file not for the members from one pds to other pds.if it is possible can u please explain clearly |
Subbu,
Its not like that, you can use SORT to COPY data from one PDS members to another PDS Member. The only thing I doubt you can take multiple members or not at once. |
|
Back to top |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
hi there....
u can use the following jcl to copy all the members at one shot.
Code: |
//*********************************************************************
//* COPY PDS MEMBERS *
//*********************************************************************
//COPY EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=A
//SYSLIST DD SYSOUT=A
//DD01 DD DSN=XXXX.XXXX.XXXXX,DISP=SHR
//DD01O DD DSN=XXXX.XXXX.XXXX,DISP=(,CATLG,DELETE),
// UNIT=SYSD@,LABEL=RETPD=90,
// DCB=(BLKSIZE=58200,LRECL=202,RECFM=FB),
// SPACE=(58200,(14000,135,800),RLSE,,ROUND)
//SYSIN DD *
$$DD01 COPY MEMBERS=ALL
/* |
|
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
What about the ISPF service LMMOVE?
O. |
|
Back to top |
|
|
|