Joined: 11 Apr 2005 Posts: 42 Topics: 19 Location: India
Posted: Tue Jun 06, 2006 5:35 am Post subject: IEBGENER - Concatenation Permanent & Temporary Datasets
Hi,
I am using IEBGENER to concatenate one permanent dataset & one temporary dataset.
When temporary dataset is empty, I am getting an error which says that the LRECL of the two datasets in concatenation is not same.
If the properties of the input dataset SHEKAR.TEST.IN has LRECL same to the LRECL mentioned for SHEKAR.TEST.OUT then your job will not fail and you will be getting
OUTPUT
Code:
DATA SET UTILITY - GENERATE
PROCESSING ENDED AT EOD
If the properties of the input dataset SHEKAR.TEST.IN has LRECL not equal to the LRECL mentioned for SHEKAR.TEST.OUT LRECL = 80 FOR SYSUT1 and LRECL = 50 for SYSUT2) then your job will fail and you will be getting
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
Posted: Tue Jun 06, 2006 9:31 pm Post subject:
Siddheart22,
When the temp dataset is created make sure that the dcb properties are filled even when a empty file is created. Let us say there is a cobol Pgm which creates the temp dataset and on certain conditions it does not write to the dataset. So if the dataset is not opened there is no DCB information in such cases for the temp dataset.
So hard code the lrecl and recfm parameters in the JCL in the step where this temp dataset is being created. If you do so you will not have any errors.
Joined: 14 May 2003 Posts: 25 Topics: 0 Location: Mission Viejo, California
Posted: Fri Jun 09, 2006 8:57 pm Post subject:
I believe it is better to change the creating program to force an OPEN/CLOSE for every file so that the DCB entry in the catalog is correct thereby eliminating the problem for ALL future files and applications.
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