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
What are the statements that are executed only?
What are the data types that sas contain?
What are the 3 components in sas programming?
explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
what is hierarchy flattening? : Sas-di
How to limit decimal places for variable using proc means?
What is the function of Stop statement in a SAS Program?
What is your favorite all time computer book? Why?
Explain bmdp procedure?
Explain the purpose of retain statement.
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
Can you execute macro within another macro? : sas-macro
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
I have a dataset concat having variable a b & c. How to rename a b to e & f?