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

data voter;
input Age Party : $1. (Ques1-Ques4)($1. + 1);
datalines;
23 D 1 1 2 2
45 R 5 5 4 1
67 D 2 4 3 3
39 R 4 4 4 4
19 D 2 1 2 1
75 D 3 3 2 3
57 R 4 3 4 4
;

Idont understand what the (Ques1-Ques4)($1. + 1) means.

I have seen (Ques1-Ques4)(4*$1.), but what is
(Ques1-Ques4)($1. + 1)?

Appreciate all help

Thanks

Answer Posted / nbohr02

You are read data for a 4 question poll
(Q1-Q4) is an arrary ($1. is the format of each element
+1) tells sas to increment the array index for each line.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you control the number of observations and/or variables read or written?

1298


Define run-group processing?

1097


explain the key concept of sas? : Sas-administrator

1050


I need level 2 to 5 sas using companies in india

2436


how would you create multiple observations from a single observation? : Sas programming

1056


What are the statements in proc sql?

1149


how does sas handle missing values in sort order? : Sas programming

981


What is the differnce between SDTM 3.1.2 to 3.1.1 version

5118


Name validation tools used in SAS

1220


If a variable contains only numbers, can it be a character data type?

1144


what is metadata? : Sas-bi

1078


what is change analysis in sas di ? : Sas-di

1116


How can I remove header from output data set?

2666


what do the pad and dim functions do? : Sas programming

1078


what is hash files in sas and why we are using this one in sas?

2269