Previous Topic: Verb Statements

Next Topic: Assignment Statements


Built-in Function Statements

NCL built-in functions perform commonly required functions that are either impossible to achieve using NCL or require complex NCL coding.

The following are examples of built-in functions:

&DEC

Converts a hexadecimal number to its decimal equivalent.

&SUBSTR

Lets you extract part of one variable and place it in a second variable.

&CONCAT

Lets you concatenate the values of two or more source variables and place the result in a target variable.

NCL statements that contain a built-in function have the general form:

&target = function  parameter

where &target is the name of a variable that is to receive the result of the built-in function, function is the keyword that is the name of the built-in function to be executed and parameter represents parameters required as input to the built-in function.

Note: For more information about NCL verbs and built-in functions, see the Network Control Language Reference Guide.