Posted: Tue Nov 08, 2005 4:49 am Post subject: DCB parameters needed
Hi all,
I have a requirement where in i have a file with following specifications.Due to a requirement change the file length has to be changed to 160 bytes.My query is when the file length is changing ,the blocksize also has to be changed.Assuming that when the length of the record is 80 bytes,the blocksize i have given is (80*10) =800 bytes which can accomodate 10 records per block.
Please guide me if i am wrong and what exactly should be the blocksize in my case / how to calculate the block size. _________________ Shekar
Grow Technically
Posted: Tue Nov 08, 2005 2:38 pm Post subject: DCB parameters needed
Hi all,
I have a GDG base with some of its generations.Basically the execution output of a program goes to the GDG generation.As a new requirement ,the file layout output in the program is changing,so GDG output lrecl has to be changed,i mean all the DCB parameters have to changed.Should i create a new GDG base with new DCB parameters so that i can give the execution output of the program to the GDG generation / is there a way in which i can change the existing DCB parameters without creating a new GDG base and give the execution output of the program to the GDG generation which will solve my purpose. I am interested in keeping the same name of the existing GDG.Please guide me which is the appropriate method and suggestable method of doing it .
Moreover if i had to use the same GDG name without creating a new one ,is it suggestable that i delete the GDG first and in the next step i create a GDG with the old name.Please correct me in my understanding.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Nov 08, 2005 2:59 pm Post subject:
shekar123,
Your GDG base does NOT have any LENGTH associated to it. You can create a new generation with different LRECL from the existing versions. You do not have to delete the GDG base. You only will have a problem if you are trying to access all the generations.
and resubmitted the same job few times to get the new generations increasing and i was able to see the new ones with new LRECL .I also browsed the older generations with old DCB paramters and i was also able to browse them properly.But u had mentioned that "You only will have a problem if you are trying to access all the generations", what exactly do you mean Kolusu as i am able to successfull browse older generation with old DCB parameters as well newer generations with new DCB parameters.Can you please clarify me what would be the problem ?
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Nov 08, 2005 4:51 pm Post subject:
Quote:
But u had mentioned that "You only will have a problem if you are trying to access all the generations", what exactly do you mean Kolusu as i am able to successfull browse older generation with old DCB parameters as well newer generations with new DCB parameters.Can you please clarify me what would be the problem ?
shekhar123,
Try referring the GDG just by giving the base name in a copy step. Try to run this step and see if your Job abends
Posted: Tue Nov 08, 2005 10:29 pm Post subject: DCB parameters needed
Kolusu,
I tried submitting the JCL but the job abended if i give the GDG base only as input in SORTIN.
Code:
********************************* TOP OF DATA **********************************
ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
ICE000I 1 - CONTROL STATEMENTS FOR 5740-SM1, DFSORT REL 14.0 - 08:46 ON WED NOV
SORT FIELDS=COPY
ICE063A 2 OPEN ERROR SORTIN
ICE052I 3 END OF DFSORT
******************************** BOTTOM OF DATA ********************************
Why is the job failing with RC 16 ? But if i change my SORTIN to say currrent generation ,the job does not abend and the contents of the current generation get successfully copied to the spool.Can u please clarify me what is the reason for job abending when we give the base.It it because ,the GDG base should not be given as for SORTIN ?
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Wed Nov 09, 2005 2:04 am Post subject:
shekar123,
Quote:
It it because ,the GDG base should not be given as for SORTIN ?
The answer to your question is NO. GDG base can be given as SORTIN. This will merge all the versions. But your problem might be because you have defined all generations with different LRECLs. (I didn't follow the thread completely but I believe that you have defined the versions with different LRECLs).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum