View previous topic :: View next topic
|
Author |
Message |
arvind.m
Active User
Joined: 28 Aug 2008 Posts: 205 Location: Hyderabad
|
|
|
|
Hi
i have a below sort card.
Code: |
SORT FIELDS=(2,34,CH,A)
OMIT COND=((1,1,CH,EQ,C'2',AND,
(16,5,CH,EQ,C'03000',OR,16,5,CH,EQ,C'09000')),OR,
(1,14,ZD,EQ,19999999999999))
SUM FIELDS=NONE
OUTFIL FILES=01,
OUTFIL FILES=02,SAVE
|
actually i wanted to save the omitted records from input file to file 02. but it is not working. can anyone help me with the code. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
you really should post the output messages,
Quote: |
but it is not working |
is very little to go on.
Gerry |
|
Back to top |
|
|
Bhargav_1058
New User
Joined: 13 Dec 2008 Posts: 53 Location: New York
|
|
|
|
Hi Arvind,
Here is the code u wanted...
Code: |
SORT FIELDS=(2,34,CH,A)
OUTFIL FILES=01,
OMIT=((1,1,CH,EQ,C'2',AND,
(16,5,CH,EQ,C'03000',OR,16,5,CH,EQ,C'09000')),OR,
(1,14,ZD,EQ,19999999999999))
SUM FIELDS=NONE
OUTFIL FILES=02,SAVE |
|
|
Back to top |
|
|
|
|