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

What is LAG function?How is it used? can any one explain

Answer Posted / basha

hai gajari
this is basha from chennai no phones no mails why? what
happened man?
ok lets see answer

lag function returns value from que
ex:-
data gajari;
input chindhi 8. @@;
datalines;
1 2 3 4 5
;
run;
data rao;
set gajari;
chore=lag(chindhi);
run;

output:-
obs chndhi chore
1 1 .
2 2 1
3 3 2
4 4 3
5 5 4

ok bye
take care
basha
TVS F&S

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is function of retain statment

2047


explain about data integrator metadata reports? : Sas-di

1116


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

1147


Which are the statements whose placement in the data step is critical?

1275


What are all the problems you faced while validating tables and reports?

3484


what is sas and what are the functions? : Sas-administrator

1002


What is the difference between using drop = data set option in data statement and set statement?

1169


how many display types available in sas bi dashboard? : Sas-bi

1095


What is the command used to find missing values?

1109


Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks

2264


how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming

1350


What is a pdv and what are its functions?

1163


How would you define the end of a macro?

1104


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

1100


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

1131