Rexx - justify



This method is used to add justify or trim the value of a string based on the length value.

Syntax

justify(string,length)

Parameters

  • String − The string value for which the justification needs to be done.

  • Length − The value for justification.

Return Value

Returns the justified string value.

Example

/* Main program */ 
options arexx_bifs 
say justify('This is a tutorial',14) 

When we run the above program we will get the following result.

Output

This is a tuto 
rexx_regina.htm
Advertisements