What is difference between (a-z) and (a--z)
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / lucyl
data k;
input a1 a2 a4 a3;
datalines;
1 2 3 4
5 6 7 8
;
run;
proc print data=k;
var a1-a3;
run;
proc print data=k;
var a1--a3;
run;
Is This Answer Correct ? | 12 Yes | 1 No |
Answer / satish kumar.v
IF you have given this
data k;
input a1 a2 a4 a3;
datalines;
1 2 3 4
5 6 7 8
;
proc print;
var a1--a4;
run;
proc print;
var a1-a4;
run;
the order is taken as priority when ever the a4 occurs then
it will stops processing in the case of a1--a4 i.e it will
display only 3 variables (a1 a2 a4) where as in second case
a1-a4 it will display all the 4 variables with 2 records
Is This Answer Correct ? | 10 Yes | 3 No |
Answer / trishna
var a1-a5: It diplays variables a1 to a5
like: a1 a2 a3 a4 a5
mean i.e it only shows variable ranges.
var a--z : displays a to z it includes variables between
a to z
like: a c d e y z
mean a--z
Is This Answer Correct ? | 4 Yes | 3 No |
Answer / niks
IF THE SEQUENCE OF VARIABLES IS..
a1 b1 c1 a2 b2 c2 a3 b3 c3.... then ... if a1-a3 is given.. it will consider variables..a1 a2 a3..only.. according to their numerical sequence... BUT ....if a1--a3
is given... then it will consider the variables ...a1 b1 c1 a2 b2 c2 a3...according to their positions...
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / krishna
a-z menas display the value from a-z(a b c d e f.......z)
a--z menas display th value from a b cz
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rajaanku11
Your question is not clear, I am assuming a, z as variable
names.
In the input statement
Input a-z; It is a number range list from a to z.
input a--z; is the name range list between a to z.
Is This Answer Correct ? | 3 Yes | 5 No |
Answer / aruna
a,z as variables names.
In the input statement
input a-z; it is a variables from a to z
input a--z; it is also the range from a to z variables
Is This Answer Correct ? | 3 Yes | 13 No |
What is the purpose of using the N=PS option?
WHAT DIFFERRENCE DID YOU FIND AMONG VERSION 6 8 AND 9 OF SAS.
if a program has some 1000 or more line and how to know whether the syntax of the particular code is correct without checking it manually
Under what circumstances would you code a SELECT construct instead of IF statements?
what is the difference between floor and ceil functions in sas? : Sas-administrator
what is fact table and factless table?
explain the key concept of sas? : Sas-administrator
Briefly describe 5 ways to do a "table lookup" in sas.
HOW MANY WAYS YOU CAN RETRIEVE THE DATA FROM ORACLE TABLES? WHAT IS ORACLE CLINICAL? HOW IT IS USEFUL?
3 Answers Accenture, Novartis,
what is transformation in sas data integration? : Sas-di
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
Which function is used to count the number of intervals between two sas dates?