Include Condition In Jcl

View All Questions

Ask a New Question

  Posted by Guest - Include Condition In Jcl :
while we are writing Include Cond=(1,3,CH,EQ,C'ABC')
it will include only ABC from the input file for that position.
but if I want to include 'ABC', 'BDC','ABD','XYZ', Etc then How can I code it?
will OR condition work here?
if yes how?

Frank Yaeger Says:
With DFSORT, you can use OR between conditions, e.g.

   INCLUDE COND=(1,3,CH,EQ,C'ABC',OR,
     1,3,CH,EQ,C'BCD',OR,
     1,3,CH,EQ,C'ABD',...)

But an easier way to do this is to use DFSORT's substring search function, e.g.

   INCLUDE COND=(1,3,SS,EQ,C'ABC,BCD,ABD,...')

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT:  Getting Started".  It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols.  You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080

Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols,
Migration
DFSORT/MVS is on the Web at www.ibm.com/storage/dfsort

Guest Says:
very GOOD! Congratulations !


Add your reply below ...



This site allows you to ask questions and get answers from various posters. You may also answer any posts if you feel like you have input to give. Feel free to ask for help with any new question you wish, but most of the questions here are tech related. You will find many questions and answers related to your Ipod or Ipod Nano, Itunes, audio and video converting, spyware or adware cleanup, pc or other computer questions, and even mainframe questions. Although these are the tech questions most often asked, you will find help on almost any computer or software related subject. Feel free to go to the main menu and review the posts already present, or feel free to ask your own question. (Some questions will be closed once the moderator feels they are sufficiently answered and that no other input is needed).

See All Tips        Iphone Apps


Your Name:

Your Reply:

Type in verification code:


Forum - Front Page

Spyware/Task Database

Computer Tips (Main Page)