Displaying 2 results from an estimated 2 matches for "asciitobinary".
2007 Jun 26
1
A really simple data manipulation example
...the
current table , and leaving a new data table for the next calculation.
So you have input datasets, a bunch of intermediate calculations, and
one or more output datasets. Pretty simple idea.
*****************************************
Some caveats:
LABRESULTS and DEMO are binary datasets. The asciitobinary and
binarytoascii statements are used to convert between binary datasets
and comma-separated ascii data files. (You can use any delimiter:
comma, vertical bar , etc). An asciitobinary statement is typically
just two lines of code.
The dpf begins with the inlist statement , and , for the moment ,
n...
2007 Jun 13
3
Awk and Vilno
...is a better
tool.
For data problems that lend themselves to UNIX-style regular
expressions, Awk, again, is a great tool.
If you have a data manipulation problem that is incredibly simple,
then converting an ascii data file to binary, and then back, may not
seem worth it. Awk, again, wins. But the asciitobinary and
binarytoascii statement ( there and back ) only takes 4 lines or so,
so Vilno is really not that bad.
Certain apsects of Vilno and SAS are a bit more user-friendly:
Each column has a variable name, such as "PatientID".
Awk uses $1, $2, $3 , as variable names for columns. Not user-fri...