What is difference between (a-z) and (a--z)
Answer Posted / basha
var a-z : this shows error message because it does not have
any numeric suffix
var a1-a5: it diplays variables a1 to a5
i.e it only shows variable ranges
var a--z : it displays a to z it includes variables between
a to z
ex;
data k;
input a b c z;
datalines;
1 2 3 4
5 6 7 8
;
proc print;
var a--z;
run;
proc print;
var a-z; >>>>>>this shows error:numuric is not there
run;
| Is This Answer Correct ? | 26 Yes | 4 No |
Post New Answer View All Answers
How can you limit the variables written to output dataset in data step?
do you need to know if there are any missing values? : Sas programming
What will calendar procedure do?
Which command is used to save logs in the external file?
Describe a time when you were really stuck on a problem and how you solved it?
What is the maximum length of the macro variable? : sas-macro
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
What does the trace option do?
what is data integration? : Sas-di
explain the key concept of sas? : Sas-administrator
What is the basic syntax of a sas program?
What is PROC in SAS?
where are dashboard components are created and maintained? : Sas-bi
why is a stop statement needed for the point=option on a set statement? : Sas programming
Explain the purpose of substr functions in sas programming.