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
 

 

TSO Command to find the latest version of a GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
bharathsb

New User


Joined: 23 Feb 2006
Posts: 3

PostPosted: Thu Mar 16, 2006 12:48 pm    Post subject: TSO Command to find the latest version of a GDG
Reply with quote

Is there any TSO command to find the latest version of a GDG?

For Eg: If the base GDG is A000.TEST.TEMP and the versions of the GDG are
A000.TEST.TEMP.G0000.V00
A000.TEST.TEMP.G0000.V01
A000.TEST.TEMP.G0000.V02
A000.TEST.TEMP.G0000.V03
A000.TEST.TEMP.G0000.V04
A000.TEST.TEMP.G0000.V05

By using a TSO command I should be able to get the following Dataset name A000.TEST.TEMP.G0000.V05

Regards,
Bharath
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Mar 16, 2006 2:45 pm    Post subject: Re: TSO Command to find the latest version of a GDG
Reply with quote

TSO LISTCAT LVL(GDG.BASE)
Back to top
View user's profile Send private message
bharathsb

New User


Joined: 23 Feb 2006
Posts: 3

PostPosted: Mon Mar 20, 2006 3:13 pm    Post subject:
Reply with quote

Thanks Superk,
The command TSO LISTCAT(GDG-BASE) lists all the GDG versions. To get the latest version alone I couldn't find any TSO command. But still we can achieve that by coding in REXX
Back to top
View user's profile Send private message
surjeet kumar singh

New User


Joined: 27 Apr 2006
Posts: 2

PostPosted: Thu Apr 27, 2006 11:31 am    Post subject:
Reply with quote

HI all,

I ran TSO LISTCAT LVL(GDG.BASE) for a GDG base but that had many record, may be 20000. It is showingt all the GDGs screen by screen followed by three * i.e. *** and that means i will have to press <enter> everytime to see the next screen.

I dont want to see all the screens as the number will ne many. Please suggest me a commant on *** to come out of this screen cycle.

Thanks in advance.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Apr 27, 2006 3:50 pm    Post subject: Re: TSO Command to find the latest version of a GDG
Reply with quote

1. Run the LISTCAT in batch, so all the output goes to SYSOUT instead of your terminal.

2. Write a CLIST or REXX exec that uses the OUTTRAP function to capture and store the output from the LISTCAT command instead of displaying it on the terminal.

3. (Not yet tested) You may be able to allocate SYSPRINT to somewhere else other than your terminal (i.e. SYSOUT or a dataset). This will definitely work if you call IDCAMS first:

TSO ALLOC DD(SYSPRINT) SYSOUT(A) REU
TSO CALL *(IDCAMS)
>input prompt
LISTCAT LVL(GDG.BASE)
>input prompt
/*
Back to top
View user's profile Send private message
surjeet kumar singh

New User


Joined: 27 Apr 2006
Posts: 2

PostPosted: Fri May 05, 2006 9:41 am    Post subject: Re: TSO Command to find the latest version of a GDG
Reply with quote

Thanks for the reply!!

I will try doing that next time. icon_cool.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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am


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