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
 

 

GDG LIMIT to be altered

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: GDG LIMIT to be altered
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: 8593
Location: Back in jolly old England

PostPosted: Tue Oct 27, 2009 3:31 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Oct 27, 2009 4:13 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Oct 27, 2009 4:43 pm    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Tue Oct 27, 2009 4:47 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Oct 27, 2009 5:10 pm    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Tue Oct 27, 2009 5:14 pm    Post subject:
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    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 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
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts Commit limit for Delete query through... mf_karthik DB2 10 Thu Dec 17, 2015 12:56 am
No new posts Array overflow on Internal table - An... scdinesh COBOL Programming 13 Thu May 22, 2014 2:55 am


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