Which of the following programs correctly writes the observations - ProProfs Discuss
Advertisement

Which of the following programs correctly writes the observations from the data set below to a raw data file?




Asked by Moxleyv, Last updated: Apr 09, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

moxleyv

moxleyv

moxleyv
Moxleyv

Answered Dec 10, 2018

Data _null_;
set work.patients;
file 'c:\clinic\patientseferrals.dat';
put id 1-4 sex 6 age 8-9 height 11-12
weight 14-16 pulse 18-20;
run;

The keyword _NULL_ in the DATA statement enables you to use the power of the DATA step without actually creating a SAS data set. You use the FILE and PUT statements to write out the observations from a SAS data set to a raw data file. The FILE statement specifies the raw data file and the PUT statement descrives the lines to write to the raw data file. The filename and location specified in the FILE statement must be enclosed in quotation marks.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.