HP3000-L Archives

October 1999, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Abraham Zwygart <[log in to unmask]>
Reply To:
Abraham Zwygart <[log in to unmask]>
Date:
Wed, 13 Oct 1999 11:24:33 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
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.

ATOM RSS1 RSS2