JUST(1,2)
PURPOSE
This function will return the field with the non-space characters moved to the left, right, or center.
PARTS
1 f/c/e | Required - The field to be justified, must be A type. |
2 f/c/e | Required - Which direction: 'L' - Left, 'R' - Right, or 'C' - Center. |
RETURN TYPE - A
The original field remains unchanged.
EXAMPLE
define x,y type a size 20
x = 'ABCD '
y = just(x,'r')
// y = ' ABCD'
y = just(x,'C')
// y = ' ABCD '