Rocket U2 | UniVerse & UniData

 View Only

 How to query the @TTY variable in UniVerse from PROC

Jon Kristofferson's profile image
Jon Kristofferson posted 03-13-2024 16:27

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 Jenkins's profile image
John Jenkins

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

Jon Kristofferson's profile image
Jon Kristofferson

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