HP3000-L Archives

July 2003, 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:
John Clogg <[log in to unmask]>
Reply To:
John Clogg <[log in to unmask]>
Date:
Tue, 8 Jul 2003 10:39:18 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (46 lines)
I think the fact that 27 is the decimal value of the escape character is merely a coincidence in this case, and that the failure is not really happening in the IF command.  Remember, in a WHILE loop, the commands are not displayed on each iteration of the loop.  An end of file certainly does not seem a likely result of this operation, and the CI's parser certainly does not assume the characters "27" represent the beginning of an escape sequence.

If you could post the entire WHILE loop, I think we could tell you what's really happening.

-----Original Message-----
From: James B. Byrne [mailto:[log in to unmask]]
Sent: Tuesday, July 08, 2003 9:49 AM
To: [log in to unmask]
Subject: Interesting problem with while loop in job


In a job file, inside a WHILE loop, the following command

!  IF HL_NOW = 2230 AND HPDATE > 26 THEN

works as expected.  However change the 26 to a 27 (decimal for
escape) and stream the job one immediately achieves the following
spectacular exit.

!  IF HL_NOW = 2230 AND HPDATE > 27 THEN
End of file encountered. (CIERR 9000)
I/O read error in WHILE commands interactively. (CIERR 10304)
Error executing commands in WHILE loop. (CIERR 10310)
REMAINDER OF JOB FLUSHED.
CPU sec. = 5.  elapsed min. = 1.  TUE, JUL  8, 2003, 11:36 AM.


This seems a rather draconian assumption on the part of the parser,
that every 27 is the beginning of an escaped command sequence.
Or am I missing something in the documentation?

Regards,
Jim

---   *** e-mail is not a secure channel ***
James B. Byrne                Harte & Lyne Limited
vox: +1 905 561 1241          9 Brockley Drive
fax: +1 905 561 0757          Hamilton, Ontario
mailto:[log in to unmask]  Canada L8E 3C3

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

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

ATOM RSS1 RSS2