View previous topic :: View next topic
|
Author |
Message |
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
sks.b4u
New User
Joined: 01 Jun 2006 Posts: 2
|
|
|
|
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
Thanks
$K$.B4U |
|
Back to top |
|
|
Hanfur
Active User
Joined: 21 Jun 2006 Posts: 104
|
|
|
|
Try issuing teh GDG base name with (0) as the version in the JCL.That would give the latest version.
-Han. |
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
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 |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
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 |
|
|
bright_skull
New User
Joined: 22 May 2006 Posts: 7 Location: Bangalore
|
|
|
|
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 |
|
Back to top |
|
|
|