Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$LJ^XLFSTR(): Left Justify String

Reference Type: Supported, Category: String Functions, ICR#: 10104

Description

The $$LJ^XLFSTR extrinsic function returns a left justified character string.

Format

  $$LJ^XLFSTR(s,i[,p])

Input Parameters

s:

(required) Character string.

i:

(required) Field size. If this second parameter contains a trailing T, this extrinsic function returns the output truncated to the field size specified.

p:

(optional) Pad character.

Output

returns:

Returns the left justified string.

 

Examples

Example 1

>W "[",$$LJ^XLFSTR("TOM",10),"]"
[TOM       ]

Example 2

>W "[",$$LJ^XLFSTR("TOM",10,"-"),"]"
[TOM-------]

Example 3

>W $$LJ^XLFSTR("123456789",5)
123456789

Example 4

>W $$LJ^XLFSTR(123456789,"5T")
12345