Pknair Beginner
Joined: 29 Nov 2005 Posts: 26 Topics: 9
|
Posted: Tue Nov 29, 2005 1:23 pm Post subject: SYNCSORT giving problems when trying to use SUB for subtract |
|
|
I was trying to use the SUB Arithmetic operator in the INREC statement and am not able to get the ouput in the desired 'BI' format. When I do not give BI it gives me the results in M0 format.When I try to do BI it does not return me the sign (-) for negative numbers. Please help. I have attached my sort statements below.
Code: |
INREC FIELDS=(1,11,
22,10,
148,4,BI,SUB,152,4,BI,BI,LENGTH=4)
SORT FIELDS=(1,21,CH,A)
INCLUDE COND=(((146,2,CH,EQ,C'D1',OR,
146,2,CH,EQ,C'D2',OR,
146,2,CH,EQ,C'D3'),AND,
66,2,CH,EQ,X'0065'),OR,
((146,2,CH,NE,C'D1',AND,
146,2,CH,NE,C'D2',AND,
146,2,CH,NE,C'D3'),AND,
66,2,CH,EQ,X'0064'))
|
|
|