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

GDG LIMIT to be altered


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rameshs78

New User


Joined: 12 Nov 2006
Posts: 8
Location: Singapore

PostPosted: Tue Oct 27, 2009 3:17 pm
Reply with quote

Hi,

I've 20 versions of GDG files, I want to limit it to two without DEL/DEF GDG base version. Can we use ALTER for this?
If anyone knows other options please let me know
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Oct 27, 2009 3:31 pm
Reply with quote

/RANT ON

When talking about GDS it is important to use the correct terminology, as both version and generation are both valid in terms of a GDS.

It is a well known fact that only one version of a GDS may exist at any one time, however, multiple generations may exist together.

Please learn and use the correct terminology when posting, as using the wrong term can cause confusion and possibly delay a resolution to your problem

/RANT OFF

By the time that you spent posting this topic, you could have tested the ALTER parameter yourself.

Go try it, and if you get a problem, post back here and we will try to help you.
Back to top
View user's profile Send private message
rameshs78

New User


Joined: 12 Nov 2006
Posts: 8
Location: Singapore

PostPosted: Tue Oct 27, 2009 4:07 pm
Reply with quote

Thanks for mentioning to use the terminology. I should mention here as generation only.

I did try the with the below lines, but not working.

ALTER GDG(NAME(gdb base) LIMIT(02) NEMP SCR)
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Oct 27, 2009 4:13 pm
Reply with quote

rameshs78 wrote:
I did try the with the below lines, but not working.
ALTER GDG(NAME(gdb base) LIMIT(02) NEMP SCR)

It might just help us a little if you posted the SYSPRINT from the IDCAMS failure
Back to top
View user's profile Send private message
rameshs78

New User


Joined: 12 Nov 2006
Posts: 8
Location: Singapore

PostPosted: Tue Oct 27, 2009 4:32 pm
Reply with quote

he is my code

//STEP010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER GDG(NAME(gdg base filename) LIMIT(02) NEMP SCR)
//*

I am getting the CC 12 mentioning ITEM 'GDG(NAME(FI' does not adhere to restrictions.

As of now I've the 30 GDG generations, which is occupying more spaces. but I want to have only the last two generation without del/def this GDG base.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Oct 27, 2009 4:43 pm
Reply with quote

expat wrote:
It might just help us a little if you posted the SYSPRINT from the IDCAMS failure

OK, so I have asked for something and you post what YOU WANT to post rather than that which was requested. Please learn, and quickly, that when some one asks for something to be posted it is to help resolve the problem rather than just give you something extra to do for a laugh.

However, the snippet of error message you did deem fit to post indicates a syntax error, which looking again at your IDCAMS statements is very true.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 27, 2009 4:47 pm
Reply with quote

The format I use is
Code:
  ALTER gdg.base.filename LIMIT(??)
Back to top
View user's profile Send private message
rameshs78

New User


Joined: 12 Nov 2006
Posts: 8
Location: Singapore

PostPosted: Tue Oct 27, 2009 5:05 pm
Reply with quote

thanks it works,
it restores only the last two generations
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Oct 27, 2009 5:10 pm
Reply with quote

rameshs78 wrote:
thanks it works,
it restores only the last two generations

Surely you mean RETAINS rather than RESTORES
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 27, 2009 5:14 pm
Reply with quote

Terminology is so crucial to understanding IT. And rameshs78, you're not inspiring confidence -- confusing versions and generations, then confusing restores and retains. Most IT terms are very precisely defined for very good reasons and you cannot interchange terms without changing (often drastically) the meaning of what you are saying.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Expand ISPF field up to a limit - is ... TSO/ISPF 9
No new posts Rexx to list generations of GDGs and ... CLIST & REXX 3
No new posts Any limit on usage of cursors ? DB2 1
This topic is locked: you cannot edit posts or make replies. Removing duplicate record based on th... DFSORT/ICETOOL 4
No new posts SDSF limit access to specifc output c... All Other Mainframe Topics 1
Search our Forums:

Back to Top