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
 
getting OMIT COND syntax error

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

New User


Joined: 16 Feb 2010
Posts: 46
Location: India

PostPosted: Thu Mar 28, 2013 8:50 am    Post subject: getting OMIT COND syntax error
Reply with quote

Below is my SORT card

Code:

SYSIN DD *
SORT FIELDS=COPY
OMIT COND=(1,1,CH,EQ,C,'1',OR,1,1,CH,EQ,C,'0',OR,
1,4,CH,EQ,C,' THE',OR,1,1,CH,EQ,C,'   ')
/*

When I run the above code I get the error
WER268A OMIT STATEMENT : SYNTAX ERROR

I did a HEX ON in my JCL as well and did not find anything unusual.

Please advice
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Mar 28, 2013 10:42 am    Post subject:
Reply with quote

You don't need a "," after C, remove it and try again:

Code:
SYSIN DD *
SORT FIELDS=COPY
OMIT COND=(1,1,CH,EQ,C'1',OR,1,1,CH,EQ,C'0',OR,
1,4,CH,EQ,C' THE',OR,1,1,CH,EQ,C'   ')
/*
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Mar 28, 2013 12:43 pm    Post subject: Re: getting OMIT COND syntax error
Reply with quote

When you have something which is wrong, you have to give details of what is wrong. Anuj took the time to spot it anyway.

Try this. Is that easier to understand what is happening?

Code:

//SYSIN DD *
  SORT FIELDS=COPY
  OMIT COND=(1,1,CH,EQ,C'1',
           OR,
             1,1,CH,EQ,C'0',
           OR,
             1,4,CH,EQ,C' THE',
           OR,
             1,1,CH,EQ,C' ')
/*


You can even try this, making use of the SS format to have all uses of that field specified together.

Code:
  SORT FIELDS=COPY
  OMIT COND=(1,1,S,EQ,C' ,0,1',
           OR,
             1,4,CH,EQ,C' THE')
/*
Back to top
View user's profile Send private message
Skss

New User


Joined: 16 Feb 2010
Posts: 46
Location: India

PostPosted: Fri Mar 29, 2013 12:32 am    Post subject: Reply to: getting OMIT COND syntax error
Reply with quote

Thanks!
That helped!
I guess I was blind to not see that error
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Mar 29, 2013 10:30 am    Post subject:
Reply with quote

Quote:
I guess I was blind
As Dr. sorichetti said in other thread, Doctor is here! icon_biggrin.gif

Glad that you got it working!
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

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