Can one use CRT statements or only PRINT statements?
Can the program being called contain INLUCDE INCBS etc ?
Can the program being called contain comments ? eg 0001: * This is my
prog
I have a process that I'm calling with PHANTOM RUN USER-BS CONFIRM but
there is no evidence of the 'phantom' starting when doing a LISTU from
TCL.
When editing the &PH& file(s) created, there's no entry in any of the
file(s), though they show 0001: ( but an empty entry).
You can use INPUT statements. But you'd have to include them as DATA
statements in a VOC (or VOCLIB) Paragraph and phantom the VOC item.
In that same vein, you have to watch out for full screen displays that
would cause the prompt "Press [NL} to continue", and thus cause the
phantom to wait indefinitely for input. If there's a chance that
that's occurring, add "DUMMY = @(0,0)" as a line of code to disable
pagination.
There are no limitations on comments, include files, or CRT
statements. The only differences between a phantom and a terminal
session are the input and output source and destination.
--
Allen Egerton
aege...@99main.com
Main thing to remember. For every Input statement, you must provide the
information. Think of the process as running on a terminal without anybody
being allowed to hit enter. If the job can run unsupervised, then it can
run in phantom.
You might want to keep the CRT/DISPLAY/Screen only PRINTs to a minimum. The
&PH& log can get very large.
Roger
>Are there limitations for a program running as a Phantom ?
you can do anything at all in a phantom that you can do in a regular
program, except of course get input from a user/keyboard. there are no
limitations.
one common problem you might run into:
if you have a login proc that does anything like send users into a
menu when they login - if it does anything that requires user input,
then you need to bypass that if the process is a phantom. a way to do
this would be to write little basic program with one line:
IF OCONV(@TTY,'MCU')='PHANTOM' THEN ABORT
and place the program strategically in the login proc.
to check and see if your test program is actually running, just have
it print something to the printer - PRINTER ON ; PRINT 'HELLO' that
will tell you.
Don't forget, if you do the PRINTER ON, PRINT 'HELLO', then do PRINTER
CLOSE, otherwise there is no output until the program ends.
Roger
Roger, If you would like to caoture output then you cana do the following:
ED VOC TEST
001 PA
002 COMO ON
003 PHANTOM RUN PROGFILE PROGRAM
004 COMO OFF
005 LIST &COMO&
Hope this helps,
Angelo