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
 

 

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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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