$input =”12345”; $value1 = chop($input); $value2=chomp($input”); print $value1, $value2;
1234 and 1
12345 and 0
1234 and 0
5 and 0
1 and 0
How many times does the following loop iterates? %list = ("first", "1", "second", "2", "third", "3"); foreach $word (keys(%list)) { last if ($word == "second"); }
four
three
two
one
Unpredictable
By default all our code is placed in one package called main
True
False
Which of the following is not a legal scalar variable
$Scalar
$_Scalar
$Scalar1
$Sca_lar
print 12e-02;
0.12
12
120
0.012
SAS programs have basically 2 steps .They are
Base SAS
DATA
Macro
PROC
A SAS program may contain a DATA step embedded within a PROC STEP and viceversa
SAS Statements – Usually begins with a keyword, always ends with a colon and are free format
Each time a step is executed, SAS software generates a log of the processing activities and the results of the processing.Separate sets of messages for each step in the program are produced.