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

What is proc sort?

1138


Can you explain the process of calendar?

1059


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

983


What are the data types does SAS contain?

1054


Which command is used to save logs in the external file?

1031


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1301


Give some ways by which you can define the variables to produce the summary report (using proc report)?

1035


What is the difference between INPUT and INFILE ?

1242


what versions of sas have you used (on which platforms)? : Sas programming

1005


Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya

1872


How would you define the end of a macro?

1042


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1184


How many ways to overcome a missing values???

2756


What is the maximum and minimum length of macro variable

1170


What is SAS informats?

1057