Dave Darnell wrote:
>
> Donna,
>
> In batch, the input command will tend to look to the next line for it's
> input, so it will "eat" the "if" statement.... hence your error in batch.
>
> I suggest testing the variable HPJOBTYPE and modify the command file to go
> around the input (see :HELP HPJOBTYPE).
And if you are using any NS/3000, there is the possibility of a batch
job on one system doing a ":remote hello" to a remote system -- the
remote process is a session and HPJOBTYPE will say so, but INPUT will
still eat the next statement
I don't have the details handy but have posted them before, but if you
want to make sure the :remote case doesn't bite you as well, try to
do a 'setvar hptypeahead true' and it returns a unique CIERROR if you
are a remote session being invoked from a batch job.
Jeff Kell <[log in to unmask]>