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
Explain what is SAS informats?
Enlist the functions performed by sas.
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
what do the pad and dim functions do? : Sas programming
what is snowflake schema? : Sas-di
Name some categories in sas 9? : sas-grid-administration
How are numeric and character missing values represented internally?
How do you convert basic cube to transaction cube and transaction cube to basic cube?
Of all your work, where have you been the most successful?
what is the effect of the options statement errors=1? : Sas programming
What is the basic syntax style in SAS?
What are the data types in sas?
For what purpose would you use the RETAIN statement?
How would you include common or reuse to be processed along with your statements?