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 techniques and/or PROCs do you use for tables?

4 Answers   Oracle,


how can u join the two tables without using proc sql Joins and nested queries ?

6 Answers   IBM,


What are the statements in proc sql?

0 Answers  


What is factor analysis?

0 Answers  


what are the new features included in the new version of SAS i.e., SAS9.1.3?

5 Answers   College School Exams Tests, Wockhardt,






Hi, I need to create a SAS Map of USA using SAS Graphs(Proc Gmap).The data i have dosent contain any co-ordinates of USA cities or counties or states, and the zip codes are diffrent in the data i have from the zip code in the Maps.US dataset in the Maps Library for SAS MAPS. the data i have is a sales report. i have to generate the maps according to the states,cities aligned in the sales data, HELP Appriciated

1 Answers  


AE datasets names? how many types?

0 Answers   Accenture,


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

0 Answers   CTS,


How to create an external dataset with sas code?

0 Answers  


name few built in sas transformation in DI studio ?

4 Answers   SAS,


How will you assign all the variables of an dataset into a macro variable separated by a space? For example if a dataset has variables A,B,C. Assign them to a macro variable X as X=A B C

3 Answers   Accenture, Oracle,


6) Explain about below automatic variables a) _N_ b) _ERROR_ c) _CHAR_ d) _NUMERIC_ e) _ALL_ f) FIRST.BY VARIABLE g) LAST.BY VARIABLE h) _NAME_ i) _TYPE_ j) _FREQ_ k) _STAT_ l) _BREAK

1 Answers   IBM, SAS,


Categories