What are the parameter types that go in INCLUDE=(??,?,??,EQ,C'??',AND,??,?,??,EQ,C'?')?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I am assuming you are refering to the OUTFIL INCLUDE option (vs. the INCLUDE COND=(xxxx) statement)

If you refer to page 103 in the manual


It explains what the comparsions are.  For your statement:


You would want to look at is as:

JCW2Author Commented:
Are the p1, m1, f1, and constant values, respectively, the same on both sides of that statement?
Not sure what you mean.  Although I will say at times IBM's manuals are a bit confusing if you are not used to using them.  After 30+ years I still get confused at times.

Think of the INCLUDE statement as a IF THEN ELSE statement

IF (A = "1") and (C = "2") then
   don't include

A is equal to the first p1,m1,f1
B is equal to the second p1, m1, f1.  

You have two unique sets of p1, m1, f1.  If you go  to page 104 it explains what p1, m1, and f1 are.   These are used to define the "field" you want to use: start, length, and format.

In your case you have two different fields and you only want to include the record when both fields are eq to some constant (C'?').  Now the constant could the the same constant in both cases or it could be different constants.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JCW2Author Commented:
Thank you for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.