Hi all,
Working on a HP3000 979 OS ver 5.5
I need to read a file one record at a time, set system variables for the
report based on the contents of the file. I have a QUIZ report that the
output goes to several people (via email). All the needed information is
kept in a sequential file (one record per person and there email address.)
I do not know how the read the file and put the record into system
variables, and loop through the file?
Sample file
ANAME [log in to unmask]
....
SETVAR USER_CODE 'ANAME'
SETVAR EMAIL_ADD [log in to unmask]
sample code of what I am looking for:
?? read file (get first record into variables)
?? while not eof
( set file equations and set some variables then run report )
?? read file (get next record into variables)
?? end_while
?? Not sure how to do this part.
Abraham Zwygart
Anodizing Inc.
Senior Programmer Analysts Email: [log in to unmask]
The thoughts, comments, and opinions expressed herein are mine
and do not reflect those of my employer(s), or anyone else.