View previous topic :: View next topic
|
Author |
Message |
Kijo
New User
Joined: 22 Mar 2007 Posts: 9 Location: Philippines
|
|
|
|
is there a way to shorten this?
Code: |
OMIT COND=(1,3,EQ,C'AAA',OR,
1,3,EQ,C'BBB',OR,
1,3,EQ,C'CCC',OR,
1,3,EQ,C'123',OR,
3,6,EQ,C'ZXCVBN',OR,
3,6,EQ,C'123456',OR,
3,6,EQ,C'ASDFGH',OR,
4,4,EQ,C'XCVB',OR,
5,4,EQ,C'CVBN',OR,
9,2,EQ,C'BN',OR,
9,2,EQ,C'12'),FORMAT=CH
|
Was just wondering what if I had 50 or 100 conds?
Thanks! |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You could use this DFSORT statement, but I'm not sure how much of an improvement that is in terms of "shortening" it.
Code: |
OMIT FORMAT=SS,
COND=(1,3,EQ,C'AAA,BBB,CCC,123',OR,
3,6,EQ,C'ZXCVBN,123456,ASDFGH',OR,
4,4,CH,EQ,C'XCVB',OR,
5,4,CH,EQ,C'CVBN',OR,
9,2,EQ,C'BN,12')
|
Note that the maximum length for an SS constant is 256 bytes but you can OR multiple SS conditions together. |
|
Back to top |
|
|
|
|