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

how to shorten omit/include cond with several conditions


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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 Developer


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

PostPosted: Tue Sep 11, 2007 8:40 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts How to load to DB2 with column level ... DB2 6
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
No new posts Db2 SQL - how to switch among differe... DB2 18
No new posts To search DB2 table based on Conditio... DB2 1
Search our Forums:

Back to Top