What is LAG function?How is it used? can any one explain
Answer Posted / naveen
this Question was raised by saddi soorath....
lag function enables you to have the previous value.
we have the following data
Name num
Naveen 1
Naveen 2
Basha 1
Basha 2
so in data step
if u give num1 =lag(num) you will have the following result
Name num num1
Naveen 1 .
Naveen 2 1
Basha 1 .
Basha 2 1
Thanks and regards
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
What function CATX syntax does?
it will become easy if uuu provide website linkssss and list of consultanciessssss
Give e an example of..
How do you specify the number of iterations and specific condition within a single do loop?
what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming
What are the 3 components in sas programming?
why a stop statement is needed for the point= option on a set statement?
Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?
What is the maximum length of the macro variable? : sas-macro
Name validation tools used in SAS
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro
What are the limitations for memory allocation for SAS variables