What's the difference between VAR A1 - A4 and VAR A1 - A4?



What's the difference between VAR A1 - A4 and VAR A1 - A4?..

Answer / viditmalhotra89

I guess you mean: difference between Var A1-A4 & Var A1--A4!
A1-A4: assumes the variable names as A1,A2,A3,A4 sequentially.
whereas,
A1--A4 : writes all the variables of the data set which are between the variables: A1 & A4,
eg: it can be name,Id etc.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More SAS Interview Questions

how to shift the rows to cols? eg: i have like field1 field2 field3 10 20 20 this should be displayed as field1 10 field2 20 field3 30 (without the obs col) how do this?can i use transpose or tell me suitable way to do this?

3 Answers   CMC,


List down the reasons for choosing sas over other data analytics tools.

0 Answers  


Describe the ways in which you can create macro variables?

0 Answers  


Mention some common errors that are usually committed in sas programming.

0 Answers  


Did you used proc test? when?

0 Answers   Accenture, Quintiles,






What are the data types does SAS contain?

0 Answers  


What is the sas data set? : sas-grid-administration

0 Answers  


Mention the validation tools used in SAS?

0 Answers  


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set.

10 Answers   Accenture,


Difference Between Scan and Substr

2 Answers  


what is change analysis in sas di ? : Sas-di

0 Answers  


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable?

2 Answers  


Categories