Can you delete the GDG base without deleting GDG
generations ?

Answer Posted / anurag sharma

GDG base can be deleted (only removal of catalog entry not physically deleted) keeping all generations intact by using additional parameter Recovery using IDCAMS utility .

//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
DELETE -
GDG01 -
GENERATIONDATAGROUP -
RECOVERY
/*

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between JES3 and JES2?

683


Explain how can the disposition of sysout datasets be set for an entire jobstream?

638


what is DSN in JCL and what are the parameters to declare the DSN?

722


How to run cobol program using jcl?

655


How does jcl act on code(if you take a cobol program)?

711






how you can access an uncataloged dataset in a JCL?

656


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7091


What are the 2 types of parameters in dd statement?

652


Explain the function of a dd statement?

662


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

791


Is their any set of rules for dd? Explain.

664


What is the motivation behind coding class parameter in job statement?

692


A dd statement consists of 4 fields. Name them?

933


how do you code a null statement?

780


How can the attributes of one sms dataset be copied to another dataset?

861