Previous Topic: &ZFEATURE

Next Topic: &ZOSCHK


&ZNCLKWD

Returns a value indicating whether a given string is an NCL keyword.

&ZNCLKWD string

Provides a means of testing whether a given string is an NCL keyword.

&ZNCLKWD is a built-in function and must be used to the right of an assignment statement.

The specified string is tested and one of the following values is assigned to the variable to the left of the assignment statement.

YES

The string is an NCL keyword.

NO

The string is not an NCL keyword.

Operands:

string

The string to be tested.

Examples:

&A = &ZNCLKWD &INPUT  
&IF &A EQ YES &THEN +
   &GOTO .INVALID

More information:

Summary Table