Here's my code -- I'm getting too many errors to list.
400-TYPE-RTN.
IF IR-MILES <=300 MULTIPLY IR-MILES BY .12 GIVING WS-MILECHRG
MULTIPLY 15 BY CR-DAYS GIVING WS-TOTALCHRG
ELSE
SUBTRACT 300 FROM CR-MILES GIVING WS-DIFFERENCE
MULTIPLY WS-DIFFERENCE BY .10 GIVING WS-TYPEAMT1
MULTIPLY 300 BY .12...
Jack,
I have another question - I think I've come up with a solution.
In working storage I have
05 Flag Pic 9 Value 0
then, in the main module I have
read in-file at end move 1 to flag
perform 200-rtn until flag=1.
what does this mean? what is flag????? That is, how is flag different from EOF?
Jack,
Thanks! That's a big help. I know about redefines and am reading up on it now. I don't expect you, or anyone, to do my homework -- I just needed a hint. I haven't gotten to loops yet although I do know what they are.
I'll test it and let you know how I'm coming along.
Again, thanks for...
Need help with 1. reading in 2 records and then printing.
the 2 recs share some of the same data such as userid
how do I do this since the records are in the same file?
do I have one in-rec. or two?
first record: userid, state, age
second reocrd userid, favorite number
output needs to be on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.