Hi Shawn, My guess is an error in the error routine for the compiler. Apparently it sees the < delimiter and gets confused, or uhhhhhh..hu hu hu......something..... I would just do a :
TEMP.VAR = File.Vars<I> READU R.record FROM TEMP.VAR,rec.ID THEN No sense banging your head against some mad compiler's wall !!!! :-) Allen E. Elwood Senior Programmer Analyst Curnayn and Associates Direct (818) 361-5251 Fax (818) 361-5251 Cell (818) 800-5595 Home (818) 361-7217 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Shawn Waldie Sent: Monday, July 19, 2004 12:59 To: [EMAIL PROTECTED] Subject: [U2] [UD] READU I'm attempting to use READU in the following fashion, but the code won't compile. However, all is well and runs well when I replace File.Vars<I> with f.var1 - in the READU statement. ERROR.RET = "" ERROR.MSG = "" f.var1 = "" CALL OPEN.FILE(f.var1,"actual file name",ERROR.RET,ERROR.MSG) File.Vars<1> = f.var1 File.Vars<2> = f.var2 FOR I = 1 TO I.END READU R.record FROM File.Vars<I>,rec.ID THEN ...load attribute vars END NEXT I The compiler returns this message: main program: syntax error at or before <line xxx> READU R.record FROM File.Vars<I>,rec.ID THEN --------------------------------^ Expecting: ELSE Suggestions are most welcome. ************************************************ * Shawn Waldie San Juan College * * Programmer/Analyst 4601 College Blvd * * Phone: (505)566-3072 Farmington, NM 87402 * * email: [EMAIL PROTECTED] * * * * HP-UX 11.11 UniData 6.0.4 Colleague R17 * ************************************************ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
