HP3000-L Archives

October 2001, 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:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Wed, 10 Oct 2001 10:55:07 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
Hi John,

>  WHILE ICNT <= !ILIM DO
>     INPUT LOGREC < OTEMP
...
>  ENDWHILE

Basically you are not using IO redirection correctly to read a file.
You really need to do one of the following:

1. make OTEMP a msg file, that way each read is destructive.
2. use the PRINT command to read and write a single record into
another temp file, then INPUT that file into your variable.
3. use alternate entry point that read from stdin.  Redirect
this entry point to the OTEMP file.

There are details of these approaches on Jazz at:
  http://jazz.external.hp.com/papers/HPWorld_01/CI/index.html

See slides 19-23.

regards,
 Jeff Vance, CSY

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2