Chapter Contents

Previous

Next
IB

IB



Reads integer binary (fixed-point) values, including negative values

Numeric
Width range: 1- 8
Default width: 4
Decimal range: 0- 10
CMS specifics: twos complement notation


Syntax
Details
See Also

Syntax

IBw.d

w
specifies the field width of the input value.

d
specifies a divisor for the input value. If the informat includes a d value, the input value is divided by 10d.


Details

The integer binary values include negative values represented in twos complement notation. The following table shows several examples of the IBw.d informat.

Data Pattern Read Actual Numeric Value Informat Resulting Numeric Value
'000004D2'x 1234 ib4. 1234
'FFFFFB2E'x -1234 ib4. -1234
'0000000C'x 12 ib4. 12
'000000003034'x 12340 ib6.2 123.4
'00000001E208'x 123400 ib6.2 1234
'00000012D450'x 1234000 ib6.2 12340


See Also


Chapter Contents

Previous

Next

Top of Page

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