I'm new to this mainframe ocean. I'm in a maintenance project.
I'm facing one problem in DFSORT utility. My JCL uses this utility to count the number of records in the input file and to create a trailer record depending on the number of records in the inpt file.
Here are the parameters it uses:
Code: Select all
MERGE FIELDS=(2,16,CH,A)
INREC FIELDS=(17C'9',C'000000010')
SUM FIELDS=(18,9,ZD)
OUTREC FIELDS=(1,25,16C'0',224X)
The output (trailer record) if there are some number of files in input will look like,
99999999999999999000006020000000000000000
where 602 is the no of records in the input file.
For an empty input, its not creating the output like
99999999999999999000000000000000000000000,
instead it is creating an empty output.
How can i overcome this problem.? Can anyone help me out.........?