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

Noscratch and Noempty parameter of GDG


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

New User


Joined: 14 Sep 2006
Posts: 7

PostPosted: Fri Sep 15, 2006 10:55 am
Reply with quote

tell me the difference between noscratch and noempty parameter of GDG
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Fri Sep 15, 2006 11:55 am
Reply with quote

The difference between empty and noempty is
EMPTY
specifies that all the generation data sets are to be uncataloged When the maximum is exceeded (each data set's non-VSAM entry is automatically deleted from the catalog).

NOEMPTY
specifies that only the oldest generation data set is to be uncataloged when the maximum is reached.

The difference between scratch and noscratch is

SCRATCH
specifies that the generation data set's DSCB is to be deleted from the volume's VTOC when the generation data set is uncataloged. Direct access device space management (DADSM) removes the data set's DSCB from the VTOC, erases the data set's space on the volume, and makes the space available to other system users. The generation data set ceases to exist. For SMS-managed GDSs, SCRATCH also specifies that the NVR is to be removed from the VVDS when the data set is uncataloged.

NOSCRATCH
specifies that the generation data set's DSCB is not to be removed from the volume's VTOC when the generation data set is uncataloged. The data set's DSCB in the volume's VTOC is left intact and can be used to locate the data set. Your program, however, can process the data set by using a JCL DD statement to describe and allocate the data set.

Thanks,
Muthuvel.
Back to top
View user's profile Send private message
shankarravi1984
Warnings : 1

New User


Joined: 15 Sep 2006
Posts: 9
Location: pune

PostPosted: Wed Sep 20, 2006 7:04 pm
Reply with quote

hi hemanth,
noscratch is given when you want delete your oldest version of gdg member logically not physically
noempty is given when you want to repalce your new veresion with oldest version
scratch is given when you want delete your oldest version of gdg member physically not logically
empty is given when you want to repalce your new version by replacing all your oldest version
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Thu Sep 21, 2006 11:45 am
Reply with quote

hi hemanth,

Let me explain wat i have understood by these terms,

Noscratch : It will not delete the GDG versions when the max number of versions for the GDG is reached.

scratch : It will scratch the older versions of the GDG, giving space for the newer versions.

Empty : It will empty the GDG versions

NoEmpty : It will not empty the GDG versions, rather it will delete the older versions of the GDG.

Correct me if i am wrong.

Thanks,
Diwakar Dayalan

Nobody is perfect. I am Nobody.
ibmmainframes.com/viewtopic.php?p=50039#50039
Back to top
View user's profile Send private message
Shija

New User


Joined: 18 Aug 2023
Posts: 2
Location: India

PostPosted: Thu Sep 28, 2023 10:33 pm
Reply with quote

Hi Hemanth - Sharing my understanding of SCRATCH/NOSCRATCH with GDG.

SCRATCH - Assume it's like SHIFT+DELETE - You cannot recover it!

NOSCRATCH - like a simple DELETE, where you can recover from the recycle bin!

EMPTY & NOEMPTY: If my GDG is of limit 4, then what will happen if 5th generation is created - 2 options here

(1) Delete the oldest gen, i.e 1st gen alone & create 5th gen (NOEMPTY)
(2) Delete all existing gen & create 5th gen (EMPTY)

Hope this helps.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1244
Location: Bamberg, Germany

PostPosted: Thu Sep 28, 2023 10:40 pm
Reply with quote

You should always specify SCRATCH, even if the DSN resides on Tape.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Sep 29, 2023 1:31 am
Reply with quote

Shija - Note that you just answered a question from 17 years ago that had in fact already been answered.

I visualize a skeleton at their computer glad to have the answer.
Back to top
View user's profile Send private message
Shija

New User


Joined: 18 Aug 2023
Posts: 2
Location: India

PostPosted: Fri Sep 29, 2023 1:32 am
Reply with quote

I think i overlooked at it, thanks icon_smile.gif
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top