View previous topic :: View next topic
|
Author |
Message |
boosha
New User
Joined: 19 Aug 2008 Posts: 1 Location: chennai
|
|
|
|
1) Create a GDG base using IDCAMS with limit of 20 generations.
//STEP1 EXEC PGM=IDCAMS
//SYSIN DD *
DEFINE GDG(NAME(TRGD26.VERSION.BASE) LIMIT(20) NOEMPTY SCRATCH)
/*
2) Create the first generation with Empty DSN using jcl with LRECL of 40.
//STEP3 EXEC PGM=IEFBR14
//INFILE DD DSN=TRGD26.VERSION.BASE(+1),DISP=NEW,SPACE=(TRK,(5,4),RLSE),RECFM=FB,LRECL=40
//
Are my answers right. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Try these out yourself and see the results.
Thanks,
Arun |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
This thread is being lengthy..unnecessarily..
Quote: |
Are my answers right. |
Yes, answers are right..
However, Using IDCAMS, it's a good practice to code different parameters on differnet lines, probably for readability..
Code: |
//DEFINE EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE GDG -
(NAME(TRGD26.VERSION.BASE) -
NEMP -
SCR -
LIM(20) ) |
Further, defining first GDG using IEFBR14 might cause problems in READ ( statement of COBOL), if your site in not SMS managed. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Anuj D. wrote: |
This thread is being lengthy..unnecessarily.. |
Yes, very lengthy for a YES/NO answer
Anuj D. wrote: |
Further, defining first GDG using IEFBR14 might cause problems in READ ( statement of COBOL), if your site in not SMS managed. |
Or in fact if the ACS routines are not perfect (like mine are )
The foolproof way is to use IEBGENER as the file builder, SYSUT1 as a DUMMY with the RECFM and LRECL specified writing to SYSUT2.
A lot longer way of doing it, but at least the dataset is opened and closed by IEBGENER and will have a valid DSORG. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hello again,
You have coded
They say, If you omit the normal termination disposition subparameter, the default is DELETE for a NEW data set. So first Generation would not be available after the execution of IEFBR14 step. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Quote: |
Or in fact if the ACS routines are not perfect (like mine are ) |
Oh..does your PM logs-in to this site.. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
What are the LIMIT attributes set to on the thread ?
Quote: |
Oh..does your PM logs-in to this site.. |
Yes, I do |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
expat wrote: |
Yes, I do |
I was afraid of this only..
BTW, I think, probably Kevin was expecting TS to pop-in at least once again.. |
|
Back to top |
|
|
|