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
 

 

Move member from one PDS to another

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Move member from one PDS to another
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    Post subject: Re: Move member from one PDS to another
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: 1187
Location: Bangalore,India

PostPosted: Tue Oct 10, 2006 6:56 pm    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Sun Oct 15, 2006 11:31 am    Post subject: Re: Move member from one PDS to another
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    Post subject: Re: Move member from one PDS to another
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    Post subject: Re: Move member from one PDS to another
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: 1452
Location: Chicago, IL

PostPosted: Mon Oct 23, 2006 6:38 am    Post subject: Re: Move member from one PDS to another
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    Post subject:
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: 2360
Location: Israel

PostPosted: Sun Oct 29, 2006 11:09 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm


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