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 sas application server? : Sas-di

1033


How would you define the end of a macro? : sas-macro

1066


hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana

5413


how to do user inputs and command line arguments in sas?

3014


What does the RUN statement do?

1279


Explain proc univariate?

1004


What are the default statistics for means procedure?

1210


What is the SAS data set?

1105


Name few SAS functions?

1058


WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

2769


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

1058


what are some differences between proc summary and proc means? : Sas programming

1083


what is the difference between unique key and primary key? : Sas-di

1094


How many ways to overcome a missing values???

2776


What do you know about sas and what we do? : sas-grid-administration

1100