MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Syncsort - with OR/AND conditions

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Fri Feb 26, 2010 7:53 pm    Post subject: Syncsort - with OR/AND conditions Reply with quote

I don't understand what this Syncsort syntax error is below...

Code:
//STEP1    EXEC PGM=SORT                                     
//SYSOUT   DD SYSOUT=*                                       
//SORTIN   DD *                                             
E ABCDEFG                                                   
A ABCDEFG                                                   
C ABCDEFG                                                   
E TUVWXYZ                                                   
A TUVWXYZ                                                   
E SSSSSSS                                                   
/*                                                           
//SORTOF1  DD SYSOUT=*                                       
//SYSIN    DD *                                             
  SORT FIELDS=COPY                                           
  OUTFIL FILES=1,                                           
  INCLUDE COND=((3,7,EQ,C'ABCDEFG',OR,3,7,EQ,C'TUVWXYZ'),AND,
  (1,1,EQ,C'E'))                                             
  END                                                       
/*                                                           
//   


Code:
SYNCSORT FOR Z/OS  1.3.2.1N    U.S. PATENTS: 4210961, 5117495
 SYSIN :                                                       
  SORT FIELDS=COPY                                           
  OUTFIL FILES=1,                                             
  INCLUDE COND=((3,7,EQ,C'ABCDEFG',OR,3,7,EQ,C'TUVWXYZ'),AND,
         *                                                   
  (1,1,EQ,C'E'))                                             
  *                                                           
  END                                                         
WER268A  OUTFIL STATEMENT  : SYNTAX ERROR                     
WER275A  NO KEYWORDS FOUND ON CONTROL STATEMENT               
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                 
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE       


Thanks for any help.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Feb 26, 2010 8:20 pm    Post subject: Reply with quote

You have INCLUDE COND= for OUTFIL instead of INCLUDE= and you are missing the format fields. This works with DFSORT so I assume it will work with Syncsort as well (I don't usually answer Syncsort questions, but the Syncsort guys on the East Coast have probably gone home by now and I'm feeling generous with the weekend coming up). Smile

Code:

  SORT FIELDS=COPY                                               
  OUTFIL FILES=1,                                               
  INCLUDE=((3,7,CH,EQ,C'ABCDEFG',OR,3,7,CH,EQ,C'TUVWXYZ'),AND,   
  (1,1,CH,EQ,C'E'))                                             

_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Sun Feb 28, 2010 9:11 am    Post subject: Reply with quote

Thanks... you made my weekend ! Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group