Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

DFSORT/ICETOOL :: RE: OUTREC FILELDS FAILS WITH ICE126A 2 INCONSISTENT REFORMAT

$
0
0
Author: balaji81_k
Posted: Tue Jul 05, 2016 9:30 pm (GMT 5.5)

Robert Sample wrote:
Quote:
it is found that data that is passed which is inconsistent with the format that is defined
Actually, the 04 reason code does not mean this at all. From the messages manual:
Quote:
4.A column overlapped the previous output field in the reformatted record.
Example (fixed-length input):
INREC IFTHEN=(WHEN=INIT,
BUILD=(81:SEQNUM,8,ZD)),
IFTHEN=(WHEN=(81,8,ZD,EQ,+1),
BUILD=(3,20,20:C'ABC'))
You read the first paragraph in the error manual, without looking at the reason code (or not understanding what the reason code means) and went off on a wild goose chase for inconsistent formats when your problem was something else entirely.

I took your SORT statements and rearranged them as
Code:
OUTREC FIELDS=(1:1,4,
                5:+0,TO=PD,LENGTH=8,
                13:+0,TO=PD,LENGTH=8,
                21:+0,TO=BI,LENGTH=4,
                25:5,8,33:13,8,41:21,4,
                45:45,10)
so there is no overlapping, and the code worked and produced an output data set. If you read the manual on the OUTREC statement, as I did, you will find that any gaps you leave in your FIELDS will be filled with spaces so you need to put the fields in ascending column sequence when coding it.


Thanks Robert for your Quick Help and as Bill suggested i have used OUTREC BUILD instead of OUTREC FIELDS.
_________________
dear peoples,
i want to join these this group in order to
enrich my knowledge in mainframe.


Viewing all articles
Browse latest Browse all 9405

Trending Articles