Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Know GDG limit using JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Deepakgoyal2005

New User


Joined: 22 Mar 2007
Posts: 57
Location: India

PostPosted: Tue Oct 21, 2008 11:46 am    Post subject: Know GDG limit using JCL
Reply with quote

I want to extract all GDG files with an available starting NODE e.g. 'DEAR.TXXXXXX.*' and display the corresponding GDG LIMIT in front of the name.
As :
Code:
DEAR.TXXXXXX.YYYY          36
DEAR.TXXXXXX.ZZZZ          40


Please provide a JCl for this...
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Oct 21, 2008 11:55 am    Post subject:
Reply with quote

Quote:
Please provide a JCl for this...

Please provide 700 euro for tried and tested code.
This is a help forum, not a "do it for me" forum - unless you want to pay for the work others do on your behalf.

Look at SYS1.SAMPLIB(IGGCSIRX) and let us know when you need some help.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Oct 21, 2008 12:20 pm    Post subject:
Reply with quote

Hi,

I'm in agreement with Expat, may be just fast fingers. In TSO can be an option, you can use this to get GDG limit..
Code:
 LISTC ENT('gdg base') ALL   
Back to top
View user's profile Send private message
vinay249

New User


Joined: 18 Apr 2007
Posts: 13
Location: Bangalore

PostPosted: Fri Oct 24, 2008 7:00 pm    Post subject: GDG
Reply with quote

Could you pls tell me how to execute this to get the GDG limit from the library SYS1.SAMPLIB(IGGCSIRX)
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8187
Location: East Dubuque, Illinois, USA

PostPosted: Fri Oct 24, 2008 7:22 pm    Post subject:
Reply with quote

Quote:
I want to extract all GDG files with an available starting NODE e.g. 'DEAR.TXXXXXX.*' and display the corresponding GDG LIMIT in front of the name.
Exactly how do you find the GDG LIMIT based on the cataloged files? What if a GDG has a LIMIT of 20 but only has 11 generations cataloged? Are you planning on reporting 11 as the LIMIT? What is the business requirement? You'd probably be better off generating an IDCAMS LISTCAT and parsing the output to find the GDG LIMIT if you really want the LIMIT and not merely the number of cataloged generations.

We've got a number of applications that create generations until a summary processing job runs, at which time all generations are taken in as a group, after which the generations are all deleted. So these applications never have the number of LIMIT generations cataloged, so by your logic they'd never show the correct LIMIT value.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Oct 24, 2008 11:35 pm    Post subject:
Reply with quote

Deepakgoyal2005,

See the "Report on GDG base limits" Smart DFSORT Trick at:

www.ibm.com/systems/support/storage/software/sort/mvs/tricks/
Back to top
View user's profile Send private message
nirenchan

New User


Joined: 21 Jul 2005
Posts: 23
Location: USA

PostPosted: Wed Oct 29, 2008 12:12 pm    Post subject: Reply to: Know GDG limit using JCL
Reply with quote

You can use REXX and extract the GDG name and limit and write the same to a output dataset.

You can Invoke LISTCAT from within REXX, get the details and pull the limit as well as GDG name into some variable and write the same to output Dataset...in the format that you want.

Regards,
Nirenchan
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 Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
This topic is locked: you cannot edit posts or make replies. Limit access to certain RACF group cvnlynn CLIST & REXX 5 Wed Aug 23, 2017 2:28 am
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Limit CICS CPU resource vasanthz CICS 0 Tue Jan 31, 2017 7:09 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us