Creating a Raw Data File
Overview
Here are a SAS program and SAS data set that appeared
earlier in this chapter.
data sasuser.stress; infile tests; input ID $ 1-4 Name $ 6-25 RestHR 27-29 MaxHR 31-33 RecHR 35-37 TimeMin 39-40 TimeSec 42-43 Tolerance $ 45; if tolerance='D'; TotalTime=(timemin*60)+timesec; run;
Notice that the data
set has been modified with SAS statements. If you wanted to write
the new observations to a raw data file, you could reverse the process
that you have been following and write out the observations from a
SAS data set as records or lines to a new raw data file.
Using the _NULL_ Keyword
Because the goal of your SAS program is to create a raw data file and not a SAS data set, it is inefficient to use a data set ...
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.