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 / naveen

In this example you have to read the data after the party
variable specifying the numeric variables (Ques1-Ques4).
This way is possible only for numeric variables. $1.
specifying the column range(width of the data value) and +1
refers to eliminate the non required data.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do dates work in SAS data?

1227


What is proc sort?

1306


Explain data_null_?

1107


What is the differnce between SDTM 3.1.2 to 3.1.1 version

5116


Name and describe few sas character functions that are used for data cleaning in brief.

1180


What are the differences between sum function and using “+” operator?

1156


what are the benefits of data integration? : Sas-di

1175


what are the component of range? : Sas-bi

1147


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

1136


What is the use of %include statement?

1103


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

1146


What is the good sas programming practices for processing large data sets?

1178


To what type of programms have you used scratch macros?

2607


what is function of retain statment

2081


If a variable contains letters or special characters, can it be numeric data type?

1281