Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 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
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us