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: 2023
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: 1255
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: 2023
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: 2023
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 Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
Search our Forums:

Back to Top