The following SAS program is submitted:
Which statement is true about the output data set?
The following SAS program is submitted:
Which statement is true about the output data set?
The variable CharEmpid is assigned the value of EmpId. Since the statement 'length EmpId $6;' specifies that EmpId is a character variable with length 6, CharEmpid will also be a character variable. The program will not fail to execute in this scenario.
I see three options: - if EmpId is defined in WORK.DEPARTMENT as numeric, then answer D is correct; - if EmpId is defined in WORK.DEPARTMENT as numeric, then answer C is correct; - if EmpId is not defined in WORK.DEPARTMENT, then also answer C is correct;
how about the Charempid is also a character variable?
If data set WORK.DEPARTMENT has a numeric variable EmpId, which statement is true about the output dataset?