NET/MASTER Network Control Language (NCL) Reference Manual
JUSTIFY
Built-in Functions
106126 Tandem Computers Incorporated 4–47
In the following example, the string “The blue sky” is justified to eight characters in
length. The output string is “The blue”, with a single space between each word:
&A = The blue sky
&B = 8
&RESULT = JUSTIFY(&A,&B)
In the following example, the string “The blue sky” is justified to nine characters in
length. The pad character is “+”. The output string is “The++blue”:
&A = The blue sky
&B = 8
&C = "+"
&RESULT = JUSTIFY(&A,&B,&C)
In the following example, the string “The blue sky” is justified to 13 characters in
length. The pad character is “#”. The output string is “The#blue##sky”:
&A = The blue sky
&B = 13
&C = #
&RESULT = JUSTIFY(&A,&B,&C)