Name statements that are execution only.
Answer Posted / n katepalli
Subsetting IF statement:Stops the current iteration when a
condition is false, does not write the current observation
to the data set, and returns control to the top of the DATA
step.
IF-THEN/ELSE statement :Stops the current iteration when a
conditon is true, writes the current observation to the data
set, and returns control to the top of the DATA step.
DO loops:Cause parts of the DATA step to be executed
multiple times.
LINK and RETURN statements:Alter the flow of control,
execute statements following the label specified, and return
control of the program to the next statement following the
LINK statement.
GO TO statement alters the flow of execution by branching
to the label that is specified in the GO TO statement. SAS
executes subsequent statements then returns control to the
beginning of the DATA step.
_N_ automatic variable in an IF-THEN construct causes parts
of the DATA step to execute only for particular iterations.
SELECT statement:Conditionally executes one of a group of
SAS statements.
OUTPUT statement in an IF-THEN construct:Outputs an
observation before the end of the DATA step, based on a
condition; prevents automatic output at the bottom of the
DATA step.
DELETE statement in an IF-THEN construct:Deletes an
observation based on a condition and causes a return to the
top of the DATA step.
ABORT statement in an IF-THEN construct:Stops execution of
the DATA step and instruct SAS to resume execution with the
next DATA or PROC step. It can also stop executing a SAS
program altogether, depending on the options specified in
the ABORT statement and on the method of operation.
WHERE statement or WHERE= data set option:Causes SAS to read
certain observations based on one or more specified criteria.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
explain the proc in sas? : Sas-administrator
for report generation which one you used proc report or data_null_?
How to create a permanent sas data set?
what is SAS OPTIMIZATION?
What is the SAS data set?
what r the job openings SAS for fresher graduates !
How will you generate test data with no input data?
what is the use of proc contents and proc print in sas? : Sas-administrator
Mention how to limit decimal places for the variable using proc means?
What are the applications primarily used by business analyst? : Sas-bi
How to specify variables to be processed by the freq procedure?
I have a dataset concat having variable a b & c. How to rename a b to e & f?
Which statement does not perform automatic conversions in comparisons?
How do you control the number of observations and/or variables read or written?
what has been your most common programming mistake? : Sas programming