I am running a sort job as given below. But I am getting the below mentioned error. The 'WHEN' verb used is not accepted, and also some other messages are given below. The input file I am using is a VB file and converting to the FB file. The sysout is given below.
SYSIN :
SORT FIELDS=(COPY),EQUALS
INCLUDE COND=((5,5,CH,EQ,C'36308'),AND,
((45,5,CH,EQ,C'OHCOG',AND,207,2,CH,EQ,C'RS'),
OR,(45,5,CH,EQ,C'OHCOG',AND,207,2,CH,EQ,C'RW'),
OR,(45,5,CH,EQ,C'OHCO1',AND,207,2,CH,EQ,C'RS'),
OR,(45,5,CH,EQ,C'OHCO1',AND,207,2,CH,EQ,C'RW'),
OR,(45,5,CH,EQ,C' ',AND,207,2,CH,EQ,C'RE')))
INREC IFTHEN=(WHEN=(207,2,CH,EQ'RS'),
*
BUILD=(1:207,304,305:C'001',308:514,31,
338:C'COLUMBUS ',360:566,152)),CONVERT
WER161B ALTERNATE PARM USED
WER251A INCLUDE/OMIT INVALID COND
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Thanks for that....
But now I am getting a different error, it is not taking the convert verb.
The message I am getting is :
SYSIN :
SORT FIELDS=(COPY),EQUALS
INCLUDE COND=((5,5,CH,EQ,C'36308'),AND,
((45,5,CH,EQ,C'OHCOG',AND,207,2,CH,EQ,C'RS'),
OR,(45,5,CH,EQ,C'OHCOG',AND,207,2,CH,EQ,C'RW'),
OR,(45,5,CH,EQ,C'OHCO1',AND,207,2,CH,EQ,C'RS'),
OR,(45,5,CH,EQ,C'OHCO1',AND,207,2,CH,EQ,C'RW'),
OR,(45,5,CH,EQ,C' ',AND,207,2,CH,EQ,C'RE')))
OUTREC IFTHEN=(WHEN=(207,2,CH,EQ,C'RS'),
BUILD=(1:207,304,305:C'001',308:514,31,
338:C'COLUMBUS ',360:566,152)),CONVERT
*
WER161B ALTERNATE PARM USED
WER268A OUTREC STATEMENT : SYNTAX ERROR
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
This is the error I got.
SYSIN :
SORT FIELDS=(COPY),EQUALS
*
INCLUDE COND=((5,5,CH,EQ,C'36308'),AND,
((45,5,CH,EQ,C'OHCOG',AND,207,2,CH,EQ,C'RS'),
OR,(45,5,CH,EQ,C'OHCOG',AND,207,2,CH,EQ,C'RW'),
OR,(45,5,CH,EQ,C'OHCO1',AND,207,2,CH,EQ,C'RS'),
OR,(45,5,CH,EQ,C'OHCO1',AND,207,2,CH,EQ,C'RW'),
OR,(45,5,CH,EQ,C' ',AND,207,2,CH,EQ,C'RE')))
OUTREC IFTHEN=(WHEN=(207,2,CH,EQ,C'RS'),
BUILD=(1:207,304,305:C'001',308:514,30,
338:C'COLUMBUS ',360:566,152)),
*
OUTFIL CONVERT
WER161B ALTERNATE PARM USED
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER268A OUTREC STATEMENT : SYNTAX ERROR
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Even without comma I was getting some error, thats why I tried with comma.
SYSIN :
SORT FIELDS=(COPY),EQUALS
*
INCLUDE COND=((5,5,CH,EQ,C'36308'),AND,
((45,5,CH,EQ,C'OHCOG',AND,207,2,CH,EQ,C'RS'),
OR,(45,5,CH,EQ,C'OHCOG',AND,207,2,CH,EQ,C'RW'),
OR,(45,5,CH,EQ,C'OHCO1',AND,207,2,CH,EQ,C'RS'),
OR,(45,5,CH,EQ,C'OHCO1',AND,207,2,CH,EQ,C'RW'),
OR,(45,5,CH,EQ,C' ',AND,207,2,CH,EQ,C'RE')))
OUTREC IFTHEN=(WHEN=(207,2,CH,EQ,C'RS'),
BUILD=(1:207,304,305:C'001',308:514,30,
338:C'COLUMBUS ',360:566,152))
OUTFIL CONVERT
*
WER161B ALTERNATE PARM USED
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER275A NO KEYWORDS FOUND ON CONTROL STATEMENT
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
This was what I was getting without comma, any idea whats wrong???