[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | *OLD* ALL-IN-1 (tm) Support Conference |
Notice: | Closed - See Note 4331.l to move to IOSG::ALL-IN-1 |
Moderator: | IOSG::PYE |
|
Created: | Thu Jan 30 1992 |
Last Modified: | Tue Jan 23 1996 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 4343 |
Total number of notes: | 18308 |
2348.0. "Problem with script after compile" by HOTAIR::MADDOX (We have change, now what?) Tue Mar 02 1993 20:55
Can any of you give me a clue as to what is going on here? I have the
following lines in a script:
.if #DIR_PRINT_OPT = "B" then -
list <merge LANL_DIR_DISPLAY_BRIEF,, KEYS.DAT, LANL_DIR_HEAD_BRIEF -
else -
list <merge LANL_DIR_DISPLAY,, KEYS.DAT, LANL_DIR_HEAD
I have extracted the following lines from the TXL (CRs and indention added)
.if #DIR_PRINT_OPT = "B" then
<ESC><PU2><SO>H<NUL>LANL_DIR_DISPLAY_BRIEF, LANL_DIR_PRINT.WPL,KEYS.DAT,
LANL_DIR_HEAD_BRIEF
ELSE
<ESC><PU2><SO>;<NUL>LANL_DIR_DISPLAY, LANL_DIR_PRINT.WPL,KEYS.DAT,
LANL_DIR_HEAD<SI><NUL>
The following line comes from the trace log:
40 ! [SCP/TRACE] .if #DIR_PRINT_OPT = "B" then
"cr=nl<merge LANL_DIR_DISPLAY_BRIEF,, KEYS.DAT, LANL_DIR_HEAD_BRIEF
ELSE
"cr1nl<merge LANL_DIR_DISPLAY,, KEYS.DAT, LANL_DIR_HEAD << LANL_DIR_READ 0013
(Note that "cr" and "nl" above are actually the carriage return and new line
characters.)
This script works fine before it is compiled, but after compiling it it does
not execute either the then or the else clause above. I have tried to include
only the the lines I felt would be relevant. If you need more detail, just
shout.
Any ideas?
Joe
T.R | Title | User | Personal Name | Date | Lines |
---|
2348.1 | 1283 in V2.3 | AIMTEC::BUTLER_T | | Wed Mar 03 1993 13:30 | 15 |
| Joe,
I had to go back to note 1283 in the V2.3 notes file. You may want to
check it out!
Are there any other files in oa$do, etc..
Is LIST a site defined function on that system
any tabs after the "-"
Good Luck,
Tim
|
2348.2 | I think that's got it. | HOTAIR::MADDOX | We have change, now what? | Wed Mar 03 1993 19:19 | 27 |
| Tim,
> I had to go back to note 1283 in the V2.3 notes file. You may want
> to check it out!
Thanks for the pointer to 1283. I had not found this note in my
previous scan.
> Are there any other files in oa$do, etc..
There were three .OLD files which had been arount since '87. I don't
think these contributed to the problem, but I deleted them anyway.
> Is LIST a site defined function on that system
No
> any tabs after the "-"
Yes. I think this was my problem. This was the first thing I tried
and it seemed to not help, but I later discovered that I had been
pointing the the original TXL even though I had re-compiled it several
times.
Thanks much for the help, Tim.
Joe
|
2348.3 | The real solution (maybe not a good one) | HOTAIR::MADDOX | We have change, now what? | Wed Mar 03 1993 22:24 | 7 |
| It turns out that the TABs were not the problem. I discovered that
if I invoke the LIST function by putting it in a "GET OA$FUNCTION =
LIST..." statement, it works.
If anyone can explain this behavior, I would like to hear it.
Joe
|
2348.4 | Bliss Knows | AIMTEC::BUTLER_T | | Fri Mar 05 1993 15:56 | 12 |
| Joe,
I have no explanation. As Don might say, "isn't it great!"
Could there be a background list going on we are not aware of?
i.e. something in the code calling list for you.
Enjoy,
Tim
|
2348.5 | Still no clues | HOTAIR::MADDOX | We have change, now what? | Thu Mar 11 1993 17:38 | 16 |
| Tim,
I don't think there is a background list going on. I'm now having the
same problem with a script which calls a mail function. The statement:
.if #TEST = "Y" then mail subject "This is text"
turns into garbage after compiled. Something really strange happens
after the "then" and when I list the compiled version the character set
on my terminal is changed after the then is displayed and everything
else written to the screen shows up in hyrogliphics. A CNTL-W resets
the screen.
Still confused,
Joe
|