HP3000-L Archives

July 1996, 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:
"Paul H. Christidis" <[log in to unmask]>
Reply To:
Date:
Tue, 9 Jul 1996 12:32:26 PST
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
<<===
1. Is there a way that an executing MPE/iX command file can determine its
name (file-name, group, account)?
===>>
 
Yes. The system variable 'HPFILE' is set to the name of the currently
executing UDC or Command file.
 
 
<<===
2. Can I perform I/O on a file within a loop and read successive records? I
tried a WHILE loop but I keep reading the same record:
 
    SETVAR COUNTER 1
    WHILE COUNTER < FINFO ("file","EOF) DO
        INPUT variable<file
        do something else
        SETVAR COUNTER COUNTER + 1
    ENDWHILE
 
===>>
 
Try the following
        file a;rec=![finfo("file","recsize")],,f,ascii;msg
        print file >*a
        while finfo("*a","eof") > 0 do
           input variable < *a
           do something
        endwhile
 
<<===
3. How could I have constructed a search within LaserRom/PC to have answered
these questions?
===>>
 
I do not know
 
Regards
 
Paul H. Christidis

ATOM RSS1 RSS2