Posted: Mon Apr 05, 2004 3:56 am Post subject: include fields not working.
hi all,
i was experimenting with various control statements in sort.Then i came across this scenario. i cannot understand it. please see if someone can help me.
so if i have the include condition in my sort step, then the highlighted records should be selected. But it is not being selected. can anyone explain why it is so?
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Mon Apr 05, 2004 10:04 am Post subject:
The INCLUDE statement (INCLUDE COND=) is processed BEFORE all of the other statements. If you want to do an INCLUDE AFTER the records are processed, you can use the INCLUDE parameter of the OUTFIL statement (INCLUDE=).
Here's a diagram that shows the order in which various DFSORT control statements are processed:
Hi Frank,
As you said , include was first processed, thats why i got the output file as blank. i changed include to outfil include. i got the correct output. thank you very much.
thanks
doubt_man
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum