21.8k views
5 votes
The data set contains nine columns. Given this DATA step, how many columns does have?

data ;
set ;
keep employee_id gender job_title salary;
run;

a. four
b. nine
c. five

1 Answer

5 votes

Final answer:

The DATA step will result in a new data set that contains four columns, as it uses the 'keep' statement to retain only the specified variables: employee_id, gender, job_title, and salary.

Step-by-step explanation:

The question concerns a DATA step in the programming language used by SAS software. The original data set contains nine columns, but the DATA step specifies the 'keep' statement, which is used to specify a subset of variables to retain in a new data set.

In this DATA step, only the variables employee_id, gender, job_title, and salary are kept. This means that the new data set will contain four columns, corresponding to these specified variables. The 'keep' statement effectively discards all other variables not listed.

User Luca Reghellin
by
7.8k points