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 OMIT condition.

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

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Mon Oct 05, 2009 8:42 pm    Post subject: Syncsort OMIT condition.
Reply with quote

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

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Oct 06, 2009 5:41 am    Post subject:
Reply with quote

Hi,

you really should post the output messages,
Quote:
but it is not working
is very little to go on.


Gerry
Back to top
View user's profile Send private message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Wed Oct 07, 2009 2:55 pm    Post subject:
Reply with quote

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
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 Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am
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
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


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