I'm using DFSORT.

In this snippit, I'm looking at the include statement. Can you give some explanation on it?
SORT FIELDS=(53,5,CH,A)(50,2,CH,A)                                               
  OUTFIL FNAMES=USA,                                                    
   TRAILER1=(/,20:'USA Areas 2009 Quarterly Budget Balance',/,          
   /,20:'Total Number of Areas:    ',8930,/,                            
   /,10:'Quarter 1',30:'Quarter 2',50:'Quarter 3',70:'Quarter 4',       
  OUTFIL FNAMES=VI1,                                                    
   INCLUDE COND=(50,2,CH,EQ,C'AK',AND,53,1,CH,EQ,C'2'),                     
   TRAILER1=(/,20:'Virgina Cities 2009 Quarterly Budget Balance',/,

Open in new window

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.

This statement selects input records based on conditions (COND):

Column 50 and 51 ("2" is the length) contain in character format ("CH") the characters 'AK'
Column 53 (length is "1") contains in character format ("CH") the character '2'.

One could as well have written:


Basically, it's an input record filter.



my second statement is of course WRONG!

Seems I forgot how to count!
We're talking about columns 50, 51 ,and 53 here, so please forget what I wrote!.

By the way, the opposite of INCLUDE would be OMIT, with the same syntax, to select records NOT to appear in the output.

Sorry again!


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
Mainframe Languages

From novice to tech pro — start learning today.