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

$$CJ^XLFSTR(): Center Justify String

Reference Type: Supported, Category: String Functions, Integration Agreement: 10104

Description

This extrinsic function returns a center justified character string.

Format

  $$CJ^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 Center justified string.

Example 1

>W "[",$$CJ^XLFSTR("SUE",10),"]"
[   SUE    ]

Example 2

>W "[",$$CJ^XLFSTR("SUE",10,"-"),"]"
[---SUE----]

Example 3

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

Example 4

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


VA (Internet) / VA(Intranet) / OI / PD / Site Map / Terms of Use / VA Privacy Policy / Accessibility

Reviewed/Updated: August 26, 2011

If you have questions, need more information, or are having accessibility problems with this website, please contact us by E-Mail: Webmasters, Phone: 510-768-6800, or FAX: 510-768-6850.