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

Move member from one PDS to another


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prathap Pillai P

New User


Joined: 08 Sep 2005
Posts: 16

PostPosted: Tue Oct 10, 2006 5:26 pm
Reply with quote

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
View user's profile Send private message
vana

New User


Joined: 27 Jul 2006
Posts: 6

PostPosted: Tue Oct 10, 2006 6:39 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Oct 10, 2006 6:56 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Sun Oct 15, 2006 11:31 am
Reply with quote

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
View user's profile Send private message
subbubannurutcs

New User


Joined: 15 Oct 2006
Posts: 11

PostPosted: Sun Oct 22, 2006 3:32 pm
Reply with 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
Back to top
View user's profile Send private message
ihatesugar
Warnings : 1

New User


Joined: 22 Oct 2006
Posts: 43

PostPosted: Sun Oct 22, 2006 5:32 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Oct 23, 2006 6:38 am
Reply with quote

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
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Sat Oct 28, 2006 12:25 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Oct 29, 2006 11:09 am
Reply with quote

What about the ISPF service LMMOVE?

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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
Search our Forums:

Back to Top