$OCTALw. Format
Converts character data to octal representation.
Category: |
Character |
Alignment: |
Left |
Syntax
Arguments
w
specifies the width
of the output field.
Default |
The default width is calculated based on the length
of the variable to be printed.
|
Range |
1–32767 |
Tip |
Because each character value generates three octal characters,
increase the value of w by
three times the length of the character value.
|
Comparisons
The $OCTAL
w.
format converts character values to the octal representation of their
character codes. The OCTAL
w.
format converts numeric values to octal representation.
Example
|
|
|
|
select put ('art', $octal15.);
|
|
select put ('rice', $octal15.);
|
|
select put ('bank', $octal15.);
|
|