Previous Topic: &ZNMSUP

Next Topic: &ZOPS


&ZOCS

Indicates whether the NCL process is associated with an OCS window.

This variable returns a value of YES if the process was invoked directly from an OCS window (via the START or EXEC command) or indirectly by another process executing in an OCS environment. A process executing in any other environment that is not associated with an OCS window (User Services, for example) sees the value of &ZOCS as NO.

Examples: &ZOCS

&IF &ZOCS EQ NO &THEN +
  &WRITE DATA=This must be run from OCS only