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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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