You are on page 1of 3

Sas

Trim- To remove extra spaces


Substr
Data work.areacodes;
Phonenumber=1234567890;
Code=(!!substr(phonenumber,1,3)!!));
Run;

2 .Data user.tables;
Infile jobs;
Input date name $job $;
Run;
Proc sort
3. proc print data=new.prodsale
Label double;
Var state day price 1 price2
4.
WHICH OF THE FOLLOWING NAMES ARE INVALID?
4birthdate no(never starts with no.)
$cost no(never start with $)
_items_y
Tax rate no(space)
_set.name
addAnew_1 y
open_2C1other_ rtmXCX_SDD_,,,,,,( LENGTH SHOULD NOT BE MORE THAN 32)
/ SHOULD NOT B THERE IN THE VARIABLE NAME

5. sas data library


6. options pagesize=15 nonumber nodate;
Suppresses the page and limits the vertical ..
7. when multiple expressions are used within a function, what delimiter should be
usedt o separate them
Comma
8. In order to c the variable listing of the variables of a file according to creation..
VARNUM
9. Which time span is used to to interpret 2 digit year values if YERACUTOFF=option
is set to 1950?
1950-2049
10. what would be the correct raw data value of a datatime field for dec 15, 1986
10:00 pm for sas?
10935
11. SET and RETAIN statement
12. Macro variables are always user defined or not?
13. which one displays correct value of macro variable month in sas logOptions &month
%put &month
Options symbolgen
%put the macro variable MONTH has the value &month
14. what value will these statements assign to the macro variables reptiles%let area=southeast;
%let reptile=sales report for & area Area*;
a)
b)
c)
d)

Sales report for southeast area


.southeast area
sales report for southeast area
sales report for southeast area

Proc reg output and modifications which can be done to get modified outputs

Call symput

You might also like