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
What are the default statistics that proc means produce?
what are the component of range? : Sas-bi
Differences between where and if statement?
Which command is used to save logs in the external file?
what is the function of catx syntax? : Sas-administrator
How can sas program be validated?
Describe what are the different levels of administrative users in sas? : sas-grid-administration
Explain bmdp procedure?
what are the considerations when picking a SAS/STAT procedure?
Difference between informat and format?
What are the data types that sas contain?
In sas admin differentiate between roles and capabilities? : sas-grid-administration
Do you need to know if there are any missing values?
Explain proc univariate?
Explain the difference between nodup and nodupkey options?