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
 

 

how to shorten omit/include cond with several conditions

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

New User


Joined: 22 Mar 2007
Posts: 9
Location: Philippines

PostPosted: Tue Sep 11, 2007 1:50 pm    Post subject: how to shorten omit/include cond with several conditions
Reply with quote

is there a way to shorten this?

Code:

  OMIT COND=(1,3,EQ,C'AAA',OR,
           1,3,EQ,C'BBB',OR,
           1,3,EQ,C'CCC',OR,
           1,3,EQ,C'123',OR,
           3,6,EQ,C'ZXCVBN',OR,
           3,6,EQ,C'123456',OR,
           3,6,EQ,C'ASDFGH',OR,
           4,4,EQ,C'XCVB',OR,
           5,4,EQ,C'CVBN',OR,
           9,2,EQ,C'BN',OR,
           9,2,EQ,C'12'),FORMAT=CH


Was just wondering what if I had 50 or 100 conds?

Thanks!
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Sep 11, 2007 8:40 pm    Post subject:
Reply with quote

You could use this DFSORT statement, but I'm not sure how much of an improvement that is in terms of "shortening" it.

Code:

  OMIT FORMAT=SS,                             
    COND=(1,3,EQ,C'AAA,BBB,CCC,123',OR,       
      3,6,EQ,C'ZXCVBN,123456,ASDFGH',OR,     
      4,4,CH,EQ,C'XCVB',OR,                   
      5,4,CH,EQ,C'CVBN',OR,                   
      9,2,EQ,C'BN,12')                       


Note that the maximum length for an SS constant is 256 bytes but you can OR multiple SS conditions together.
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 Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm


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