From: Yerry on
Hi,
How can we write an array of integers with range of values from 0-128.
I want to write them in a binary file with each element occupying 8
bits (1byte). Any hints or suggestions?
From: Richard A. DeVenezia on
On Sep 18, 7:34 pm, Yerry <jerryken2...(a)gmail.com> wrote:
> Hi,
> How can we write an array of integers with range of values from 0-128.
> I want to write them in a binary file with each element occupying 8
> bits (1byte). Any hints or suggestions?

Use format IB1.

data _null_;
file 'c:\temp\integer-array.dat' recfm=n;
do i = 0 to 127;
put i pib1. @@;
end;
run;

-
Richard A. DeVenezia
http://www.devenezia.com