using oufil files/fnames , outrec and include condition simultaneously in Sort..?

IBM's Sort Product, ICETOOL, ICEMAN and ICEGENER.
Post Reply
AmjzadAli
Registered Member
Posts: 14
Joined: Sun Oct 26, 2014 7:54 pm

using oufil files/fnames , outrec and include condition simultaneously in Sort..?

Post by AmjzadAli »

Hi,

Is there anyone who uses oufil files/fnames , outrec and include condition simultaneously in Sort..? I am getting error.
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: using oufil files/fnames , outrec and include condition simultaneously in Sort..?

Post by Anuj Dhawan »

Well, without really knowing the specifics about your problem - below code works with all different key-words you've asked for:

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)
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.
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.
Post Reply

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

Register

Sign in

Return to “IBM DFSort, ICETOOL, ICEMAN, ICEGENER.”