Skip to main content

Is there a way in PROC to test the @TTY variable and exit if it is equal to phantom?

Sorry, Prime Information guy here, not much PROC.

Jon

Is there a way in PROC to test the @TTY variable and exit if it is equal to phantom?

Sorry, Prime Information guy here, not much PROC.

Jon

Jon,

Create a small program that evaluates @TTY and uses PROCWRITE to place it in a PROC buffer. You can then access the PROC buffer directly from the PROC Tghere are other ways, but this methodology is fairly flexible.

Regards

JJ

JJ


Is there a way in PROC to test the @TTY variable and exit if it is equal to phantom?

Sorry, Prime Information guy here, not much PROC.

Jon

John,

Thanks! That did it. 1 line basic program CHECK.TTY compiled and cataloged.

PROCWRITE @TTY

PQ
HCHECK.TTY
P
IF A1="phantom" X

Jon