View previous topic :: View next topic
|
Author |
Message |
rameshs78
New User
Joined: 12 Nov 2006 Posts: 8 Location: Singapore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
/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 |
|
|
rameshs78
New User
Joined: 12 Nov 2006 Posts: 8 Location: Singapore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
rameshs78
New User
Joined: 12 Nov 2006 Posts: 8 Location: Singapore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
The format I use is
Code: |
ALTER gdg.base.filename LIMIT(??) |
|
|
Back to top |
|
|
rameshs78
New User
Joined: 12 Nov 2006 Posts: 8 Location: Singapore
|
|
|
|
thanks it works,
it restores only the last two generations |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
rameshs78 wrote: |
thanks it works,
it restores only the last two generations |
Surely you mean RETAINS rather than RESTORES |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|