Which program creates the output shown below? - ProProfs
     

Which program creates the output shown below?





A. data work.salesrep;
infile empdata;
input ID $ 1-4 LastName $ 6-12
FirstName $ 14-18 City $ 20-29;
run;
proc print data=work.salesrep;
run;

B. data work.salesrep;
infile empdata;
input ID $ 1-4 Name $ 6-12
FirstName $ 14-18 City $ 20-29;
run;
proc print data=work.salesrep;
run;

C. data work.salesrep;
infile empdata;
input ID $ 1-4 name1 $ 6-12
name2 $ 14-18 City $ 20-29;
run;
proc print data=work.salesrep;
run;



D. All of the above

This question is part of SAS Chapter 5

+ AnswerRequest Answer
...

1 Answer

John Smith

John Smith

Answered on Jun 01, 2017

data work.salesrep;
infile empdata;
input ID $ 1-4 LastName $ 6-12
FirstName $ 14-18 City $ 20-29;
run;
proc print data=work.salesrep;
run;

The INPUT statement creates a variable using the name that you assign to each field. Therefore, when you write an INPUT statement, you need to specify the variable names exactly as you want them to appear in the SAS data set.

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

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