MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copying recently changed 10 members of a PDS into another.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
csk
Beginner


Joined: 20 Sep 2006
Posts: 11
Topics: 5

PostPosted: Wed Sep 20, 2006 9:35 am    Post subject: Copying recently changed 10 members of a PDS into another. Reply with quote

Hi,

Known that its possible using IEBCOPY to copy members from a PDS into
another PDS, also selectively,
Is it really possible to copy just the recently changed 20 members from a PDS into another using this utility? Or can it be done through any other way out?

Thanks for ur help in advance.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Sep 20, 2006 9:53 am    Post subject: Reply with quote

csk,

Try this

Code:

//STEP0010 EXEC PGM=FILEAID
//SYSPRINT DD  SYSOUT=*                 
//SYSLIST  DD  SYSOUT=*                 
//DD01     DD  DSN=Your Input PDS,
//             DISP=SHR                 
//DD01O    DD  DSN=YOUR OUTPUT PDS,
//             DISP=SHR
//SYSIN    DD  *                       
$$DD01 COPY CHANGED=(byy/bmm/bdd,eyy/emm/edd)
/*


The changed syntax is
Code:

CHANGED=(from-date,to-date)
                (,to-date)
                (from-date)
                from-date

The following date formats are valid:


      YY/MM/DD


      YY/MM


      YY



So in the above code

Code:

byy/bmm/bdd  - begin year/begin month/ begin day

eyy/emm/edd  - end year/end month/end day


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
csk
Beginner


Joined: 20 Sep 2006
Posts: 11
Topics: 5

PostPosted: Wed Sep 20, 2006 10:27 am    Post subject: Reply with quote

Thanks Kolusu.. Will try this and let you know the results...
Also could you pls confirm if this is not at all possible with the IEBCOPY utility.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Sep 20, 2006 10:39 am    Post subject: Reply with quote

Quote:

Also could you pls confirm if this is not at all possible with the IEBCOPY utility.

csk,

It is NOT possible with IEBCOPY alone. However you can have a rexx which will read the LMSTATS and dynamically build the IEBCOPY control statements.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
csk
Beginner


Joined: 20 Sep 2006
Posts: 11
Topics: 5

PostPosted: Thu Sep 21, 2006 1:30 am    Post subject: Reply with quote

Thanks Kolusu...
Used the FILEAID option which you had mentioned. It was helpful.


Thanks,
csk.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group