Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Using Selected versions of GDG as input file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Using Selected versions of GDG as input file
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    Post subject: Re: Using Selected versions of GDG as input file
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    Post subject: Re: Using Selected versions of GDG as input file
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    Post subject: Re: Using Selected versions of GDG as input file
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us