(3) Write a SAS program to read the following lines of data. You want this data set to contain a variable called NUMBER, which is a two-digit number following the first occurrence of the string 'XYZ'...


(3) Write a SAS program to read the following lines of data. You want this data set to contain a variable called NUMBER, which is a two-digit number following the first occurrence of the string 'XYZ' in each of the lines. For example, in line 1,the value of NUMBER is 78; in line 2, it has a missing value; in line 3 NUMBER is 12 and in line 4 it is 98


(b) This one is a bit harder. Write a SAS program to read the following four lines of data. This time, you are looking for up to two, one-digit numbers following the letters 'X'. 'Y'. or 'Z'. Call the first number NI and the second number N2. Note that these variables should be SAS numeric values. HINT: In line 1, NI is 7 and N2 is 5; in line 2, NI and 2 are both missing. In line 3, N1 is 8 and N2 is missing; in line 4, N1 is 8 and N2 is 9.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here