Subject: | |
From: | |
Reply To: | |
Date: | Tue, 9 Jul 1996 12:32:26 PST |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
<<===
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
|
|
|