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...

tell me about use of arrays in sas

Answer Posted / vimal raj

SAS Array's main functionality is

when a same action has to be performed repeatedly for n number of similar variables, it is ideal to use array which will simplify the sas program and gives the efficient performance in running and also the look n feel is better

data readin;
set outdata;
array Q(20) Q1-Q20;
do i= 1 to 20;
if Q(i) = 6 then Q(i)= .;
end;
run;

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between sas functions and sas procedures.

1211


Explain what Proc glm does?

1188


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

1062


Differentiate between format and informat? : sas-grid-administration

1045


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

1050


What do the put and input function do?

1042


What’s the difference between var b1 – b3 and var b1 — b3?

1339


How would you identify a macro variable?

1078


How to create an external dataset with sas code?

1132


Tell me about % include and % eval? : sas-macro

1127


how sas deals with business intelligence? : Sas-bi

1045


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1524


What is the purpose of _character_ and _numeric_?

1050


What is maximum number of rows and cols can be handled in SAS?

1559


what is sas enterprise intelligence architecture? : Sas-bi

964