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 

How to Concate the GDG last 3 versions.

 
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
hisabarish
Beginner


Joined: 21 Jun 2005
Posts: 38
Topics: 11

PostPosted: Mon Jun 27, 2005 9:18 am    Post subject: How to Concate the GDG last 3 versions. Reply with quote

I have a GDG with 5 Generation. Now i want to Concatenate Last 3 Genreation only. How do i concat the last 3 generation.
_________________
Sabari
Madras
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon Jun 27, 2005 9:24 am    Post subject: Reply with quote

As an example:
Code:

//STEPXXXX EXEC PGM=IEBGENER
//SYSUT1   DD DISP=SHR,DSN=MY.GDG(-2)
//         DD DISP=SHR,DSN=MY.GDG(-1)
//         DD DISP=SHR,DSN=MY.GDG(0)
//SYSUT2   DD DSN=NEW.CONCAT.DSN,DISP=(,CATLG,DELETE),
//         UNIT=......
//SYSPRINT DD SYSOUT=*
//SYSIN    DD DUMMY
Back to top
View user's profile Send private message
hisabarish
Beginner


Joined: 21 Jun 2005
Posts: 38
Topics: 11

PostPosted: Tue Jun 28, 2005 2:30 am    Post subject: Why it is not accepting thru REPRO Command. Reply with quote

Thankx super,

It is working, Okay why it is not accepting thru Repro command.

ie.,
//sysin dd *
Repro -
Indataset(MY.GDG(-2))-
Outdataset(NEW.CONCAT)
/*

Pls. revert me..
_________________
Sabari
Madras
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Jun 28, 2005 5:33 am    Post subject: Reply with quote

hisabarish,

Look up the REPRO syntax. Check this link . You can concatenate your files to a DD name

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1v403/3.25?DT=19990113080956

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
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