View previous topic :: View next topic
|
Author |
Message |
sudhamani
New User
Joined: 08 Nov 2007 Posts: 19 Location: india
|
|
|
|
Code: |
//SYSIN DD *
SORT FIELDS=(13,9,CH,A,7,4,CH,A)
OUTFIL INCLUDE=(13,7,CH,EQ,C'3256005'),AND,
(1,6,CH,EQ,C'111607'),AND,
(7,4,CH,GE,C'1025'),AND,
(7,4,CH,LE,C'1040'),AND,
(112,1,CH,EQ,C'2'),OR,
(112,1,CH,EQ,C'4'),OR,
(112,1,CH,EQ,C'6'),FNAMES=SORTOF1
OUTFIL INCLUDE=(13,7,CH,EQ,C'3256005'),AND,
(1,6,CH,EQ,C'111607'),AND,
(7,4,CH,GE,C'1025'),AND,
(7,4,CH,LE,C'1040'),AND,
(112,1,CH,NE,C'2'),OR,
(112,1,CH,NE,C'4'),OR,
(112,1,CH,NE,C'6'),FNAMES=SORTOF2
|
Can anyone correct this control card using iceman
giving OUTFIL STATEMENT : SYNTAX ERROR |
|
Back to top |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
You have unbalanced parentheses.
Code: |
//SYSIN DD *
SORT FIELDS=(13,9,CH,A,7,4,CH,A)
OUTFIL INCLUDE=((13,7,CH,EQ,C'3256005'),AND,
(1,6,CH,EQ,C'111607'),AND,
(7,4,CH,GE,C'1025'),AND,
(7,4,CH,LE,C'1040'),AND,
(112,1,CH,EQ,C'2'),OR,
(112,1,CH,EQ,C'4'),OR,
(112,1,CH,EQ,C'6')),FNAMES=SORTOF1
OUTFIL INCLUDE=((13,7,CH,EQ,C'3256005'),AND,
(1,6,CH,EQ,C'111607'),AND,
(7,4,CH,GE,C'1025'),AND,
(7,4,CH,LE,C'1040'),AND,
(112,1,CH,NE,C'2'),OR,
(112,1,CH,NE,C'4'),OR,
(112,1,CH,NE,C'6')),FNAMES=SORTOF2 |
This corrects the syntax but will it do what you mean it to? You must determine that, as you did not tell us what you intended it to do. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Douglas Wilder wrote: |
You have unbalanced parentheses.
Code: |
//SYSIN DD *
SORT FIELDS=(13,9,CH,A,7,4,CH,A)
OUTFIL INCLUDE=((13,7,CH,EQ,C'3256005'),AND,
(1,6,CH,EQ,C'111607'),AND,
(7,4,CH,GE,C'1025'),AND,
(7,4,CH,LE,C'1040'),AND,
(112,1,CH,EQ,C'2'),OR,
(112,1,CH,EQ,C'4'),OR,
(112,1,CH,EQ,C'6')),FNAMES=SORTOF1
OUTFIL INCLUDE=((13,7,CH,EQ,C'3256005'),AND,
(1,6,CH,EQ,C'111607'),AND,
(7,4,CH,GE,C'1025'),AND,
(7,4,CH,LE,C'1040'),AND,
(112,1,CH,NE,C'2'),OR,
(112,1,CH,NE,C'4'),OR,
(112,1,CH,NE,C'6')),FNAMES=SORTOF2 |
This corrects the syntax but will it do what you mean it to? You must determine that, as you did not tell us what you intended it to do. |
I don't think it will work properly with the mix of and's and or's with no parentheses to group them. |
|
Back to top |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
sudhamani
Explain the rules(INCLUDE conditions) that you are trying to code here. So that we could help you in building the SORT CARD. |
|
Back to top |
|
|
|
|