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 / 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 Help Members By Posting Answers For Below Questions

please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

2139


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

1121


What function CATX syntax does?

1258


it will become easy if uuu provide website linkssss and list of consultanciessssss

2027


Give e an example of..

2138


How do you specify the number of iterations and specific condition within a single do loop?

1155


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

1296


What are the 3 components in sas programming?

1239


why a stop statement is needed for the point= option on a set statement?

1132


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)?

1737


What is the maximum length of the macro variable? : sas-macro

1155


Name validation tools used in SAS

1220


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

1060


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

1104


What are the limitations for memory allocation for SAS variables

1547