Hi,
Is there anyone who uses oufil files/fnames , outrec and include condition simultaneously in Sort..? I am getting error.
using oufil files/fnames , outrec and include condition simultaneously in Sort..?
- Anuj Dhawan
- Founder
- Posts: 2824
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: using oufil files/fnames , outrec and include condition simultaneously in Sort..?
Well, without really knowing the specifics about your problem - below code works with all different key-words you've asked for:
May be you should know that irrespective of the order in which you code the statements, they are processed in an order by SORT - SORT statement, OUTREC statement, OUTFIL statements.
Hope this helps.
Code: Select all
//SYSIN DD *
SORT FIELDS=(1,4,CH,A)
OUTFIL FNAMES=1,
INCLUDE=(2,2,CH,EQ,C'01',AND,40,4,CH,EQ,C'ABCD')
OUTREC FIELDS=(1:14,42)
Hope this helps.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute