Identify statements whose placement in the DATA step is
critical?

Answer Posted / pratik singh jageera

The placement of drop keep and rename statement does not affect its execution order.The order is fixed in the order
DROP-KEEP-RENAME.Even if you put a rename statement(rename old_var=new_var;) before a drop statement.The drop statement will look for old_var as it is executed prior to rename statement.
Length can be the answer as its placement is very important.Changing the length value of a variable after the set statement will not carry out the necessary change.It has to be done before set statement.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to save logs in the external file?

801


Mention what are the data types does SAS contain?

911


what are the component of range? : Sas-bi

818


What is the difference between %local and %global? : sas-macro

877


explain the difference between proc means and proc summary?

871


How to sort in descending order?

1002


In proc transpose and data step with arrays which one you pick?

2788


how do the in= variables improve the capability of a merge? : Sas programming

1171


How many data types are there in SAS?

809


how would you determine the number of missing or nonmissing values in computations? : Sas programming

903


What is the difference between using drop = data set option in data statement and set statement?

893


How to limit decimal places for variable using proc means?

795


describe the interaction table in sas di? : Sas-di

783


what versions of sas have you used (on which platforms)? : Sas programming

805


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2344