wt is a-z and a--z?

Answers were Sorted based on User's Feedback



wt is a-z and a--z?..

Answer / veerendar alugola

you can see the below example for a-z:

data ptcde;
input ptid $ test1 test2 test3 test4;
cards;
1102 56 65 66 70
1103 55 85 62 77
1104 85 71 59 66
1105 55 100 120 61
1106 90 58 65 63
;
run;

data abc;
set ptcde;
a=mean(of test1-test4);
run;

when you use a-z it will consider only the range variables.


You can find the below example for a--z;

data ptcde;
input ptid $ test1 abc def test4;
cards;
1102 56 65 66 70
1103 55 85 62 77
1104 85 71 59 66
1105 55 100 120 61
1106 90 58 65 63
;
run;

data abc;
set ptcde;
a=mean(of test1--test4);
run;

when you use a--z it will consider all the variables
irrespective of the series.

Is This Answer Correct ?    9 Yes 0 No

wt is a-z and a--z?..

Answer / suneetha

If we consider 'a' as lower limit and 'z' as upper limit,
a-z is used to refer numeric variables and a--z is used to
refer to character variables.

Is This Answer Correct ?    15 Yes 7 No

wt is a-z and a--z?..

Answer / aravind9882

'a-z' means sas considers only alpha characters between a
to z where as 'a--z' means, sas considers a to z watever it
may b in between.

Is This Answer Correct ?    7 Yes 4 No

Post New Answer

More SAS Interview Questions

What is the different between functions and PROCs that calculate the same simple descriptive statistics?

0 Answers   Quintiles,


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

0 Answers   Oracle,


How will you generate test data with no input data?

0 Answers  


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

0 Answers  


What are exact SAS Base contents..?N what r SAS Tools..?

1 Answers  






You have a data set of 100 observations,how can you restrict the output so that the output has only data from row no. 10 to row no. 20

9 Answers  


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

0 Answers  


What is the purpose of _character_ and _numeric_?

0 Answers  


How to specify variables to be processed by the freq procedure?

0 Answers  


what is the diff. b/w proc means and proc summary?

12 Answers   CitiGroup,


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

0 Answers  


i have a macro variable var1,var2. i want titles for the each macro variable separately? how it is possible?

1 Answers   L&T,


Categories