Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SYNCSORT cant have OMIT and INCLUDE together

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Tanvi Jaiswal

New User


Joined: 04 Apr 2008
Posts: 7
Location: Hyderabad

PostPosted: Sat Apr 05, 2008 4:49 pm    Post subject: SYNCSORT cant have OMIT and INCLUDE together
Reply with quote

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?
Back to top
View user's profile Send private message

CICS Guy

Senior Member


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

PostPosted: Sat Apr 05, 2008 6:08 pm    Post subject: Re: SYNCSORT error
Reply with quote

Try
Code:

  INCLUDE COND=(32,1,CH,EQ,C'X',AND,1,1,CH,NE,C'C')   
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

PostPosted: Sat Apr 05, 2008 8:33 pm    Post subject: Reply to: SYNCSORT error
Reply with quote

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
Back to top
View user's profile Send private message
CICS Guy

Senior Member


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

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

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us