Chapter Contents

Previous

Next
$BINARYw.

$BINARYw.



Converts character data to binary representation

Category: Character
Alignment: left


Syntax
Syntax Description
Comparisons
Examples

Syntax

$BINARYw.

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


Comparisons

The $BINARYw. format converts character values to binary representation. The BINARYw. format converts numeric values to binary representation.


Examples

put @1 name $binary16.;

Values Results

ASCII EBCDIC

----+----1----+----2
----+----1----+----2
AB
0100000101000010
1100000111000010


Chapter Contents

Previous

Next

Top of Page

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