Page 1 of 1

Include cond for "between" values !

PostPosted: Mon May 11, 2009 7:01 pm
by ranga_subham
Hi, I want to use INCLUDE condition to write output records falling between values '2' & '7'.

Input File:
0 110011
1 101010
2 209845
3 108756
4 018704
5 100100
6 900650
7 900450
8 100101


Output:
3 108756
4 018704
5 100100
6 900650


Please help.

Thanks.

Re: Include cond for "between" values !

PostPosted: Mon May 11, 2009 8:37 pm
by Alissa Margulies
Try this:

//SYSIN DD *
  SORT FIELDS=COPY
  INCLUDE COND=(1,1,CH,GT,C'2',AND,1,1,CH,LT,C'7')
/*

Re: Include cond for "between" values !

PostPosted: Tue May 12, 2009 3:02 pm
by ranga_subham
Thank you very much.