Skip to main content
Question

How to query the @TTY variable in UniVerse from PROC

  • March 13, 2024
  • 2 replies
  • 0 views

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

2 replies

John Jenkins
Forum|alt.badge.img+1
  • Participating Frequently
  • 253 replies
  • March 13, 2024

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


  • 0 replies
  • March 14, 2024

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