I need to search 200 fixed block datasets with mixed record lengths. After I submit the job to search, I receive the following after a 30 seconds of execution
Code:
SYSTEM COMPLETION CODE=0C4 REASON CODE=00000011
The output dataset does have a few results, but I do not believe all of the datasets were searched before the abend. Not sure how to proceed from here, any suggestions?
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
From the JCL Language Reference (link at the top of the page):
Quote:
12.1.6.6 Logical Record Lengths for Concatenated Data Sets
Concatenated data sets with format-V records can have different logical record lengths as long as the data set with the largest logical record length appears first in the concatenation. (Note that you can state a value equal to the largest logical record length for LRECL on the first DD statement, regardless of what the actual logical record length of this data set is.)
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
Are the files fixed or variable length? Fixed, right?
Suggest you use a proc/pend and set up the dsn as a symbolic parameter and process one file per execution. The output can all be written (disp=mod) into the same output file to make use easier after the searches are done. Also, suggest you remove the dcb info from the jcl - it is not needed.
You would want a step before the PROC statement (iefbr14 or idcams) to catalog a new "output" file, so that all of the executions would append via the "mod". You would have 200 EXECs rather than 200 DDs. . . Suggest the sysin data be placed into a dataset so the search input need not be repeated.
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
From the JCL Language Reference (link at the top of the page):
Quote:
There are two types of sequential concatenation:
* Like. The same logical record length (LRECL) value and record format apply to all the data sets. The block size (BLKSIZE) values and device characteristics might differ.
* Unlike. Any of data set characteristics might differ. The application program must have logic to support this capability.
which goes with
Quote:
12.1.6.6 Logical Record Lengths for Concatenated Data Sets
Concatenated data sets with format-V records can have different logical record lengths as long as the data set with the largest logical record length appears first in the concatenation. (Note that you can state a value equal to the largest logical record length for LRECL on the first DD statement, regardless of what the actual logical record length of this data set is.)
You are explicitly allowed to use variable length records with different LRECL as long as the longest goes first. However, the same does not apply to fixed length records.