Format: |
- $J(string,n)
- $J(n1,n2,n3)
|
Parameters: |
- In the first format, string is a string expression;
n is an integer representing width of field.
- In the seconf format, n1 is a numeric expression;
n2 is an integer representing the width of field; n3 is the
number of decimal places to output with the number.
|
Use: |
- In the first format, the function returns string right
justified within a field that has a width of n. If string is
longer than n, there is no truncation.
- In the second format, the function returns n1 right
justified in a field that has a width of n2. There will be n3
decimal places to the right of the decimal point.
|
Example: |
$J(NAME,20) =>
Smith,Al
[12 spaces preceding the 'S']
"$"_$J(PRESCRIPTION COST,8,2) =>
$ 25.88
[3 spaces preceding the '2'] |