Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
Tanvi Jaiswal

New User

Joined: 04 Apr 2008
Posts: 7

Posted: Sat Apr 05, 2008 4:49 pm    Post subject: SYNCSORT cant have OMIT and INCLUDE together

My original sort job is:

 Code: SORT FIELDS=(1,12,CH,A),EQUALS   SUM FIELDS=NONE                  OMIT COND=(1,1,CH,EQ,C'C')      INCLUDE COND=(32,1,CH,EQ,C'X')

it gave error

i think we cant have OMIT and INCLUDE together right?
So how can I convert one to another?

CICS Guy

Senior Member

Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

Posted: Sat Apr 05, 2008 6:08 pm    Post subject: Re: SYNCSORT error

Try
 Code: INCLUDE COND=(32,1,CH,EQ,C'X',AND,1,1,CH,NE,C'C')
Ajay Baghel

Active User

Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

Posted: Sat Apr 05, 2008 8:33 pm    Post subject: Reply to: SYNCSORT error

SORT FIELDS=(1,12,CH,A),EQUALS
SUM FIELDS=NONE
OMIT COND=(1,1,CH,EQ,C'C')
INCLUDE COND=(32,1,CH,EQ,C'X')
 Quote: EQUALS
is an option and not a parameter for SORT statement.

OPTION EQUALS

-Ajay
CICS Guy

Senior Member

Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

Posted: Sat Apr 05, 2008 8:53 pm    Post subject: Re: Reply to: SYNCSORT error

 Ajay Baghel wrote: EQUALS is an option and not a parameter for SORT statement.
Have you looked at the Syncsort manual?
 Chapter 2. SyncSort Control Statements wrote: EQUALS/NOEQUALS Parameter (Optional) The EQUALS parameter insures that the original order of equal-keyed records is preserved. These records will be in the same order in the output file as they were in the input file. NOEQUALS, the default, specifies that equal-keyed records may not be written in their original input order. When the EQUALS parameter is used with the SUM control statement, the first of the equal-keyed records is retained with the sum; all other records are deleted after the specified field(s) have been summed.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us