IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SYNCSORT cant have OMIT and INCLUDE together


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2146
Location: At my coffee table

PostPosted: Sat Apr 05, 2008 6:08 pm
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: 206
Location: Bangalore

PostPosted: Sat Apr 05, 2008 8:33 pm
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: 2146
Location: At my coffee table

PostPosted: Sat Apr 05, 2008 8:53 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
Search our Forums:

Back to Top