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

Using Selected versions of GDG as input file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anu Narayanan

New User


Joined: 12 Sep 2005
Posts: 20
Location: USA

PostPosted: Fri Oct 06, 2006 10:02 pm
Reply with quote

Hi,

I have a GDG with 10 versions. I would like to use only the last 5 versions of the GDG as an input file in my job. is it possible to use them without hard coding like the combination of GDG(0) to GDG(-4) ? I know I can use the GDG base as input if i want to use data in all the versions of the GDG. I want to use only the last 5 versions, because I know the data is present in only the last 5 versions. If I use the base GDG as input the job runs for hours as all the versions of GDG are read.

Thanks for your replies.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Oct 06, 2006 10:17 pm
Reply with quote

Anu Narayanan,

The way you describe GDG(-4) thru GDG(0) is the accepted way of doing this.

Dave
Back to top
View user's profile Send private message
rohit jaiswal
Warnings : 2

New User


Joined: 09 Mar 2006
Posts: 36
Location: hyderabad,A.P

PostPosted: Sat Oct 07, 2006 3:58 pm
Reply with quote

hi Anu

can u please send me the jcl and please eloborate on it as i didnt understand how to use GDG(-4) thru GDG(0). do u mean u want to give the base of the gdg along with the version.

for example xx.xxx.xxx(-4) then
xxx.xxx.xxx(-3) and so on where xxx.xxx.xxx is the base of the gdg

or is ti somehting different from what i have understood
regards
rohit
Back to top
View user's profile Send private message
Anu Narayanan

New User


Joined: 12 Sep 2005
Posts: 20
Location: USA

PostPosted: Wed Oct 11, 2006 2:31 am
Reply with quote

Hi Rohit,

yes you are right. If the Base GDG is xxxx.yyyy, then I would be using xxxx.yyyy(0)
xxxx.yyyy(-1)
xxxx.yyyy(-2)
xxxx.yyyy(-3)
xxxx.yyyy(-4) in the input files
Hope you are clear.

Thanks,
Anu Narayanan
Back to top
View user's profile Send private message
meetreks

New User


Joined: 28 Sep 2006
Posts: 26
Location: Edinburgh

PostPosted: Wed Oct 11, 2006 2:37 am
Reply with quote

you can cancatenate the exact version if you know which ones you are going to use.
Back to top
View user's profile Send private message
TizMe

New User


Joined: 05 Jan 2006
Posts: 72

PostPosted: Wed Oct 11, 2006 6:14 am
Reply with quote

Code:

//indd  DD DISP=SHR,DSN=xxxx.yyyy(-4)
//      DD DISP=SHR,DSN=xxxx.yyyy(-3),UNIT=AFF=indd
//      DD DISP=SHR,DSN=xxxx.yyyy(-2),UNIT=AFF=indd
//      DD DISP=SHR,DSN=xxxx.yyyy(-1),UNIT=AFF=indd
//      DD DISP=SHR,DSN=xxxx.yyyy(-0),UNIT=AFF=indd


Make sure that you use the UNIT=AFF parms if your input files are tape files. This means that you will only need 1 tape drive, otherwise you will need to allocate 5 drives. UNIT=AFF is not required if the data is on DASD
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top