Page 1 of 1

INCLUDE COND in SORT card

PostPosted: Fri Aug 01, 2014 2:55 pm
by ashwin1990
If i have a variable with a value (say VAR = 10), can i use it in INCLUDE COND to get value that are equal to (VAR+5)?

Re: INCLUDE COND in SORT card

PostPosted: Fri Aug 01, 2014 3:16 pm
by BillyBoyo
How difficult is it to look in your manual, and to just try it?

I'm not even sure what you are asking. Can you show sample input and expected result?

Re: INCLUDE COND in SORT card

PostPosted: Fri Aug 01, 2014 3:26 pm
by ashwin1990
Input file:
15
15
15

Value of VAR:10


I want to fetch data from input file using VAR.

Do we have something like
INCLUDE COND=(1:2,zd,eq,(var+5))

Re: INCLUDE COND in SORT card

PostPosted: Fri Aug 01, 2014 3:40 pm
by BillyBoyo
And where does VAR exist? Why can't you just add five to it? Also, note that 1:2 is not valid, you mean 1,2?

Re: INCLUDE COND in SORT card

PostPosted: Fri Aug 01, 2014 4:03 pm
by ashwin1990
VAR exists in SYMNAME.

Yes its 1,2

Re: INCLUDE COND in SORT card

PostPosted: Fri Aug 01, 2014 4:50 pm
by BillyBoyo
Well, I'd suggest you make another symbol/SYMNAME which is VAR (I hope that that is a meaningful name) plus five and use that.