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

How to find latest GDG version using JCL?


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
murmohk1

Senior Member


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

PostPosted: Wed Jul 05, 2006 3:43 pm
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Compare latest 2 rows of a table usin... DB2 1
Search our Forums:

Back to Top