Chapter Contents

Previous

Next
$OCTALw.

$OCTALw.



Converts character data to octal representation

Category: Character
Alignment: left


Syntax
Syntax Description
Comparisons
Examples

Syntax

$OCTALw.

Syntax Description

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 three times the length of the character value.


Comparisons

The $OCTALw. format converts character values to the octal representation of their character codes. The OCTALw. format converts numeric values to octal representation.


Examples

put @2 name $octal9.;
The character # represents a blank space.

Values Results

EBCDIC ASCII

----+----1
----+----1
A##
 301100100
 101040040
B##
 302100100
 102040040


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.