Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is difference between (a-z) and (a--z)

Answers were Sorted based on User's Feedback



What is difference between (a-z) and (a--z)..

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

What is difference between (a-z) and (a--z)..

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

What is difference between (a-z) and (a--z)..

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

What is difference between (a-z) and (a--z)..

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

What is difference between (a-z) and (a--z)..

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

What is difference between (a-z) and (a--z)..

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

What is difference between (a-z) and (a--z)..

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

What is difference between (a-z) and (a--z)..

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

Post New Answer

More SAS Interview Questions

how can you get the single data set from the library(which has the number of data sets)?

3 Answers   Accenture, Deloitte,


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

0 Answers   Accenture,


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

0 Answers   Pfizer,


what are sas bi dashboard components? : Sas-bi

0 Answers  


what is enterprise guide? What is the use of it? : Sas programming

0 Answers  


How the date 04oct1994 is stored in SAS,not only give the answer explain in brief?

5 Answers  


What happens in the following code, if u type 8 instead of *? proc sql noprint; create table abc as select 8 from lib.abc; quit;

3 Answers  


Write a SAS macro to calculate number of numbers in an email address

2 Answers  


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

0 Answers  


what is the effect of the options statement errors=1? : Sas programming

0 Answers  


What are the joins,types of joins and thier functions?

7 Answers   SAS,


if reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record

4 Answers   HSBC,


Categories