this is not the only input data . there are several other data lines for whcih i need the same rule..
my input will be like this
503030 diff -> 50-(30-30) = 50 okay to me
503020 diff -> 50-(30-20) = 40 okay to me
502030 diff -> 50-(20-30) = 60 NOT okay to me i want 40 in this case also. So idea is not matter what type (+ to - value is returned by inner diff, discarding the sign i want to subtract it from 50.
Is it possible to perform this in single step. i am using INREC,OUTREC for some calculations. these values are used by final OUTFILE OUTREC stmt. Therefore I wish that in final stmt i get - converted to + .
my card is like this
INREC FIELDS=(some calculations)
OUTREC FIELDS=(calculations based on values calculated by INREC)
OUTFILE FNAME=OUT,OUTREC(convert - into + in the manner requested by me)
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Fri Apr 08, 2005 7:31 am Post subject:
Quote:
It looks like converting the result of a subtraction from - to + in a single card is not possible.
Akhilraj,
You are going in circles. Did you run the job shown by me 6 post above this post? huh? It does consider the negative value as positive values and subtracts it from field 1
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