20 pts.
 GDG AUTOMATION USING REXX
Hi ,

 

Can anyone please tell me if there is a rexx code to automate GDG.

If anyone of you have it , kindly post it here.

Thanks

Archana



Software/Hardware used:
rexx
ASKED: January 19, 2010  2:01 PM
UPDATED: January 22, 2010  3:09 PM

Answer Wiki:
What do you want to do, what do you want to accomplish? "REXX code to automate GDGs" doesn't really say much. GDGs are pretty automated all by themselves.
Last Wiki Answer Submitted:  January 19, 2010  3:06 pm  by  Meandyou   5,205 pts.
All Answer Wiki Contributors:  Meandyou   5,205 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

HI,

Every time when i give prep to my JCL ‘s i get errors saying that the GDG’s are not built for the datasets.So i go to fileaid everytime to create GDG ‘s . Now i wan a REXX which will have all the dataset names in it and on execution creates GDG ‘s for all tjhose datasets.
Hope u understand it. Thanks

 65 pts.

 

One can define GDG base using IDCAMS. forget REXX for this one. Just use JCL. add something like this to the front of your job:

 //         EXEC PGM=IDCAMS                                             
 //SYSPRINT DD SYSOUT=*                                                 
 //SYSIN    DD *                                                        
   DEFINE GDG (NAME(name of first dataset)   LIMIT(3) NOEMPTY   SCRATCH) 
  DEFINE GDG (NAME(name of  2nd  dataset)   LIMIT(3) NOEMPTY   SCRATCH) 
  DEFINE GDG (NAME(name of another one  )   LIMIT(3) NOEMPTY   SCRATCH)  
 /*   

But the obvious question is who is deleting your GDG definitions? Why aren’t they still there? I think you might want to go visit with your storage administrator. Perhaps you are not defining them correctly or placing them improperly or naming them without following certains standards and they are being cleaned up. Datasets just don’t go away, usually. You can’t live in a world where your stuff just disappears. Talk to your SMS or DASD guy to find out what is happening to your GDGs.

Steve

 5,205 pts.