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

INCLUDE OMIT COND for Multiple values at same position.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Piyush Jadhav

New User


Joined: 06 Feb 2014
Posts: 7
Location: India

PostPosted: Fri Mar 01, 2024 8:50 pm
Reply with quote

Hi, While I try to check for multiple conditions on same positions be to included in my final output file,
I tried coding - instead multiple OR conditions but I am getting JCL ERROR for this, am I missing anything here or I will have to code this multiple times ?

//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(2,1,CH,NE,L(C'7',C'6',C'3',C'2',C'5',C'4',C'1',C'0'))
//*
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2119
Location: USA

PostPosted: Fri Mar 01, 2024 9:12 pm
Reply with quote

JCL ERROR has not a minor relation to the SORT utility statements! icon_pai.gif

Check you JCL.
There must be also a message in SDSF log: what exactly is wrong in your JCL (but not in your SORT control statements).
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1306
Location: Bamberg, Germany

PostPosted: Fri Mar 01, 2024 9:16 pm
Reply with quote

Try the following snippet instead:
Code:
OPTION COPY                     
OMIT COND=(2,1,SS,EQ,C'76325410')
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2119
Location: USA

PostPosted: Fri Mar 01, 2024 9:53 pm
Reply with quote

Joerg.Findeisen wrote:
Try the following snippet instead:
Code:
OPTION COPY                     
OMIT COND=(2,1,SS,EQ,C'76325410')


It has nothing to do with the JCL ERROR
Back to top
View user's profile Send private message
Piyush Jadhav

New User


Joined: 06 Feb 2014
Posts: 7
Location: India

PostPosted: Fri Mar 01, 2024 10:38 pm
Reply with quote

Thanks a lot Joerg and Sergeyken for quick help. it sorted my jcl.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2119
Location: USA

PostPosted: Fri Mar 01, 2024 10:50 pm
Reply with quote

Piyush Jadhav wrote:
Thanks a lot Joerg and Sergeyken for quick help. it sorted my jcl.

It cannot fix any JCL ERROR.
Just not possible.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts how to eliminate null indicator value... DB2 7
No new posts SORT JCL to merge multiple tow into s... DFSORT/ICETOOL 6
No new posts To Omit records based n SORT condition DFSORT/ICETOOL 6
No new posts Using Multiple IFTHEN and WHEN condit... SYNCSORT 12
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top