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...
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.