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

SYNCSORT :: RE: WER247A incompatible lrecl

$
0
0
Author: sergeyken
Posted: Tue May 02, 2017 7:36 pm (GMT 5.5)

Danielle.Filteau wrote:
THANK YOU !!!!!!! it finally worked.
I wish syncsort would give you more information to help diagnose these kinds of errors. Are there any tricks you know to help with situations like this? I have 26 of these cases to code ... lol

The whole trick is: whenever you get the message
Code:
WER247A  UPDT1    HAS INCOMPATIBLE LRECL
then try to
    - compare your BUILD definitions, and LRECL of your output file, or
    - use some new DSNAME without DCB parameter defined in your DD statement; the file will be created with LRECL taken from your BUILD parameter - you can compare it to what you really need; in some cases even output DD with SYSOUT=* may help to visually find the difference in output.

I can recommend not to be lazy, and format your statement(s) properly. It makes easier further searching for typos, etc.
Code:
... INCLUDE=(3,3,CH,EQ,C'017',
        AND,56,8,CH,NE,C'99991231',
        AND,16,2,CH,EQ,C'AR',
        AND,25,1,CH,NE,C'*',
        AND,67,1,CH,EQ,C'N'),
    BUILD=(1,66,
          67:C'Y1',69,96,
         165:C'CONSERV',3X,
         175:&DATE1,184,16,
         /,1,24,
        25:C'1',26,30,
        56:C'99991231',64,100,
       165:C'CONSERV',3X,
       175:&DATE1,184,16)

_________________
Tyrannosaurus-REXX


Viewing all articles
Browse latest Browse all 8500

Trending Articles