0% found this document useful (0 votes)
52 views5 pages

Sas (Bas303)

The document provides details of an end semester examination for a post graduate program in data science. It includes 5 sections with multiple choice and long answer questions related to SAS programming. Key topics covered include data input methods, creating and manipulating SAS datasets, applying formats, the PDV process, SAS variables and date/missing values.

Uploaded by

Apurva Narayan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views5 pages

Sas (Bas303)

The document provides details of an end semester examination for a post graduate program in data science. It includes 5 sections with multiple choice and long answer questions related to SAS programming. Key topics covered include data input methods, creating and manipulating SAS datasets, applying formats, the PDV process, SAS variables and date/missing values.

Uploaded by

Apurva Narayan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

EMPI BUSINESS SCHOOL

End Semester Examination-November, 2021


PGDM Batch 2020-22 – SEMESTER: III
Sub: SAS(BAS303)

MAX MARKS: 60 MAX TIME: 3HRS. 20 minutes

on the question paper. Writing on Question paper will marks

Section – ‘A” (Total Marks: 20) Answer any two questions. All questions

Carry 10 marks each.

1. What are the different methodology/styles of data input? Explain all of them along with
the scenario when to use each one of them? Also explain how the method related to free
format functions? What is the difference between fixed and variable length records in a
text file and what is the option to be used for resolving this issue?

2. This is a text file available to you as follows:

ID Name Score
1 Rahul 36
2 Kriti 42
3 Chitvan 96
4 Ravi 25

Write a code to create a SAS dataset by entering the above values.


Create a user defined format for converting the score values as follows:

Now write a code for applying this customized format to your dataset, as created above.

3. Describe PDV and the phases in detail through which SAS processes programs
(describe clearly what happens at every stage here)?
Section – ‘B’ (Total Marks: 15) Write short notes on any three. All questions carry 5
marks each.

1. Creating and using macro for data sorting command


2. SAS steps
3. Proc Freq
4. SAS Dataset Components
5. Any five SAS Commands

Section – ‘C ‘(Total Marks: 25) Answer any three, Q. No. 1 is Compulsory.

Q.No. 1 carries 9 marks and the rest of questions carry 8 marks each.

Q1. Describe SAS Variables and the type of data they store. Also explain the treatment of
date values by SAS in detail with an example and representation of missing values in the
SAS dataset?

Q2. Choose the correct options for the Questions mentioned below:

a) Which statement correctly re-defines the values of the variable Income as 100 percent
higher?

a. income=income*1.00;
b. income=income+(income*2.00);
c. income=income*2;
d. income= *2;

b) Which of the following FORMAT procedures is written correctly?

1. proc format lib=library value colorfmt; 1='Red' 2='Green' 3='Blue' run;


2. proc format lib=library; value colorfmt 1='Red' 2='Green' 3='Blue'; run;
3. proc format lib=library; value colorfmt; 1='Red' 2='Green' 3='Blue' run;
4. proc format lib=library; value colorfmt 1='Red'; 2='Green'; 3='Blue'; run;
c) Which statement will limit a PROC MEANS analysis to the variables Boarded, Transfer,
and Deplane?

I) by boarded transfer deplane;


II) class boarded transfer deplane;
III) output boarded transfer deplane;
IV) var boarded transfer deplane;

d) Which SAS statement subsets the raw data shown below so that only the observations
in which Sex (in the second field) has a value of F are processed?

I) if sex=f;
II) if sex=F;
III) if sex='F';
IV) I or II

Q3. Choose the correct options for the Questions mentioned below:

a) Which SAS statement associates the fileref Crime with the raw data file
C:\States\Data\Crime?

I) filename crime 'c:\states\data\crime';


II) filename crime c:\states\data\crime;
III) fileref crime 'c:\states\data\crime';
IV) filename 'c:\states\data\crime' crime;
b) Which INPUT statement correctly reads the numeric values for Cost (third field)?

I) input @17 Cost 7.2;


II) input @17 Cost 9.2.;
III) input @17 Cost comma7.;
IV) input @17 Cost comma9.;

c) Which SAS statement correctly reads the values for Flavor and Quantity? Make sure the
length of each variable can accommodate the values that are shown.

I) input Flavor & $9. Quantity : comma.;


II) input Flavor & $14. Quantity : comma.;
III) input Flavor : $14. Quantity & comma.;
IV) input Flavor $14. Quantity : comma.;

d) Which of the following statements selects from a data set only those observations for
which the value of the variable Style is RANCH, SPLIT, or TWOSTORY?

I) where style='RANCH' or 'SPLIT' or 'TWOSTORY';


II) where style in 'RANCH' or 'SPLIT' or 'TWOSTORY';
III) where style in (RANCH, SPLIT, TWOSTORY);
IV) where style in ('RANCH','SPLIT','TWOSTORY');

Q4. Mr.X executed a Proc print command and found an increase in number of variables in the
result window. What is the reason for this? Please write a code for solving this problem of Mr.X.
Also Mr.X wants to customize the variables selection and the number of rows in the results.
What are the commands do you suggest him and also explain them with dummy examples?

Q5. Answer the following:


a. Differentiate between Standard and Non Standard Numeric Data?
b. Describe two methods of pointer control?
c. Describe Libname and Filename?
d. Define usage of DSD and Missover?

You might also like