
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

As usual, send me copies of your programs and the resulting permanent SAS data set. Turn in a copy of the SAS program and the printout.
The "in=" option to a set statement will create a new variable that will have the value of 1 if the observation comes from the data set specified in the set statement. The syntax for concatenating two data sets (names one and two) is as follows:
set one(in=inone) two;
For this case, each observation from data set one will have a variable with the name "inone" that has a value one; otherwise the value of the variable will be set to a missing value. This variable is in the program data vector; so it is available for use in calculations. However, it is not written to the data set. Ask me for clarification if you have any questions about this new command.
Create a permanent SAS data set called “one” that contains the three variables X, Y, and Z and contains the following seven observations.
1 2 3 1 3 6 1 7 8 2 3 -1 2 4 0 2 6 8 3 4 1
Create a permanent SAS data set called “two” that contains the two variables A and B and contains the following five observations.
A 6.67 B 7.34 C 4.91 D 3.38 C -0.
Create a new permanent SAS data set that concatenates data sets one and two subject to the following:
Print the resulting data set.