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
 

 

How to find latest GDG version using JCL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Jul 05, 2006 3:43 pm    Post subject: How to find latest GDG version using JCL?
Reply with quote

Hi,

Assuming you have provided GDG base and not allowed to use 3.4 option etc.....

How would you find the latest GDG version?

Thanks!!!!

Regards,
Murali Mohan K
Back to top
View user's profile Send private message

sks.b4u

New User


Joined: 01 Jun 2006
Posts: 2

PostPosted: Wed Jul 05, 2006 3:52 pm    Post subject: Re: How to find latest GDG version using JCL?
Reply with quote

Hi murali,


It is possible to see all GDG versions by using command DSLIST 'GDG name' in the command line ,then it lists all gdg versions and check Latest Version.

correct me if iam wrong icon_rolleyes.gif

Thanks

$K$.B4U
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Wed Jul 05, 2006 5:04 pm    Post subject: Hi
Reply with quote

Try issuing teh GDG base name with (0) as the version in the JCL.That would give the latest version.

-Han.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Jul 06, 2006 11:22 am    Post subject:
Reply with quote

Hi,

I think DSLIST command is same as 3.4.
So, in this game, its not permitted.

I am curious enough as to how this can be done in JCL ?

Thanks,
Parikshit.
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Jul 06, 2006 11:57 am    Post subject: Re: How to find latest GDG version using JCL?
Reply with quote

hi,

Try this piece IDCAMs code which returns the details of the GDG.


//YESRNO EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENTRIES('KBY@V1.OUTPUT.RESULT')
/*

This lists all the GDG Versions.
~Vamsi
Back to top
View user's profile Send private message
bright_skull

New User


Joined: 22 May 2006
Posts: 7
Location: Bangalore

PostPosted: Tue Jul 11, 2006 11:17 am    Post subject: Re: How to find latest GDG version using JCL?
Reply with quote


What I would suggest keeping the initial problem in mind is (that is to find the latest GDG version)

1. Write a sort step to COPY the latest GDG version(+0) to some flat file name.

2. After the job is successful, goto the Spool and select the 'JESYSMSG'.

3. Inside this option, just search for the GDG base name... and you'll be getting the details of the GDG version used..

Cheers,
S icon_smile.gif
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm


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