Professional Documents
Culture Documents
You can place more than one SAS statement on a single line.
True b.) False
What is the default storage length for SAS numeric variables (in bytes)?
16 bytes
32 bytes
8 bytes
None of these.
You can use PROC CONTENTS to list the names of all the SAS data sets in a SAS
library (folder)?
True
False
ODS TRACE statement tell the SAS to print information in output file?
True
False
What SAS statements would you code to read an external raw data file to a DATA step?
INFILE statement.
FILE statemet
FILEIN statement
None of the above.
True
False
A. END = X
B. OBS = X
C. EOF = X
D. LASTOBS = X
RUN;
Upon completion of execution, what are the values of the variables X and
INDEX in the SAS data set named
LOOP?
x = 3, index = 3
x = 3, index = 4
x = 5, index = 5
x = 5, index = 6
x = 5, index = 7
data xx;
date1=122591;
date2=put(date1,z6.);run;
What’s the data type of date1 and date 2 ?
not executed
Data Test;
today = '20dec2008'd;
format today mmddyy10.;
run;
data combine;
set one two;
run;
A. 10
B. 20
C. 0, the DATA step will fail due to syntax errors
D. 10 to 20, depending on how many observations match
Numeric
Character
YYMMDD10.
DDMMYY8.
INTCK function computes the number of intervals between two dates and
INTNX function computes a date after a given number of intervals.
INTNX function computes the number of intervals between two dates and INTCK
function computes a date after a given number of intervals.
Both INTCK and INTNX are used for function computes the number of intervals
between two dates
DISCHRDATE= '29NOV2003'D;
a)Yes
b)No
27) Compare the Result – INTCK (when taking the year difference years) and YRDIF.
c)INTCK will return the whole nos and YRDIF will return with decimal
point
d)Both (a) and (b).
Data Test;
today = '20dec2005'd;
format today mmddyy10.;
run;
30)Which set of statements is the most efficient equivalent to the code shown below?
else Type='Unknown';
else Type='Unknown';
else type='Unknown';
else type='Unknown';
31) Mark the Keyword that will come under WHERE statement,
b.In, is missing
c.=*,contains
32.What is an array
arrays are a collection of elements (usually SASvariables)
b)arrays are used store memory location of other variables
c)array is collocection of statement