What are the length and value of the variable ADDRESS? The following SAS program is submitted: data one Īddress = tranwrd(address1,Way’, Drive’) The length statement has no effect because it is used after the set statement where the length has already been loaded. The length of the variable is 5 because the first dataset has a length of 5 and SAS reads the first dataset first. What is the length of the variable JOBCODE in the output data set? The variable JOBCODE has a length of 5 in the WORK.DEPT1 data set and a length of 7 in the WORK.DEPT2 data set. The following SAS program is submitted: data work.accounting Ī character variable named JOBCODE is contained in both the WORK.DEPT1 and WORK.DEPT2 SAS data sets. This is false because the first dataset(WORK.PEOPLE) is read first and then the second(WORK.EMPSALARY). The IF statement is used to determine whether both the dataset contributed to the current observation. The IN option is applied in both the datasets. SAS reads WORK.PEOPLE dataset first and then WORK.MONEY. How many observations will the data set WORK.EMPSALARY contain? The SAS data set WORKPEOPLE has 5 observations, and the data set WORK.MONEY has 7 observations. The following SAS program is submitted: data work.empsalary PROC procedure-name DATA= d ataset-name LABEL LABEL variable-name=’Label’ RUN The correct syntax for assigning labels in Proc steps is When placed in a procedure the label only stays attached to the variable for that procedure. When a label statement is placed in a data step, the label stays with the variable for all subsequent procedures, unless relabeled.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |