From: Yerry on 18 Sep 2009 19:34 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 21 Sep 2009 11:20 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
|
Pages: 1 Prev: Proc Surveyselect Next: Editing existing dataset using PROC IML. |