Тёмный

First.Variable and Last.Variable in SAS | First. and Last. Processing in PDV 

Learnerea
Подписаться 18 тыс.
Просмотров 15 тыс.
50% 1

This video provides a comprehensive explanation of First.Variable and Last.Variable including the PDV processing. after watching this video you will be able to:
► Create an incremental counter based on the value of by variable
► Explain the First.Variable and Last.Variable processing in PDV
► Subset/Fetch the Nth observation from a dataset
► Calculate cumulative sum for each value in by variable
► Calculate subtotal/total for by variable
#Learnerea
#SASTraining #SASTutorial #SASCourse #SASTutorialForBeginners #SAS #SASforBeginners
#SASProgramming #SASTProgrammingForBeginners #SASProgrammingTutorial
Contacts:
Facebook ► / learnerea
Download the excel files for practice data
GitHub ► github.com/LEA...

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@rajutelagareddi2036
@rajutelagareddi2036 3 года назад
great brother........... i have no words to appreciate your explanation
@learnerea
@learnerea 2 года назад
Thank you so much 😀
@meghajain4544
@meghajain4544 2 года назад
Hey you have explained very easily. U have used good approach. To the point and relevant. Fantastic way
@learnerea
@learnerea 2 года назад
Glad you liked it 👏
@musicophile4342
@musicophile4342 Год назад
Thank you sir.. Good explanation 👍
@arorajaonah8830
@arorajaonah8830 Год назад
God bless you man ❤
@nd4763
@nd4763 3 года назад
Great explanation. Thanks a lot
@learnerea
@learnerea 2 года назад
Glad you liked it 👏
@narendervatsavai3662
@narendervatsavai3662 2 года назад
Super explanation sir.........
@learnerea
@learnerea 2 года назад
Thanks and welcome
@ajaykushwaha-je6mw
@ajaykushwaha-je6mw 2 года назад
Salute you Sir.
@Dreamgardener747
@Dreamgardener747 Год назад
Thank you so much!!
@learnerea
@learnerea Год назад
Glad it helped!
@ajaykushwaha4233
@ajaykushwaha4233 2 года назад
Such a great video, why don’t you create video on SDTM and on AdAM.
@TheYi1985
@TheYi1985 10 месяцев назад
Fantastic !
@learnerea
@learnerea 10 месяцев назад
Glad you like it!
@syedabushra4662
@syedabushra4662 2 года назад
Nicely explained
@learnerea
@learnerea 2 года назад
Thank you
@yuanzhou3249
@yuanzhou3249 2 года назад
where is this "trans" dataset? Thanks!
@roshan6503
@roshan6503 2 года назад
Can we use proc rank to create counter?
@rohitwalopkar6953
@rohitwalopkar6953 2 года назад
Can we use functions like mean , sum in after then statement?
@learnerea
@learnerea 2 года назад
While you are summarising
@mrinmoydas2351
@mrinmoydas2351 2 года назад
How to get last 2 trxn details of each Customer_name?
@learnerea
@learnerea 2 года назад
First sort the data in descending order and then use the same technique to create counter variable and the pick those where counter
@chinthamahesh4561
@chinthamahesh4561 3 года назад
Hi sir, I have a doubt, can u tell me how to read? Data a; Input name$ salary age; Datalines; mani 2300 24 Anil 2500 45 Maheshmani 3000 28 Mahesh chintha 4200 30 ; Run;
@learnerea
@learnerea 3 года назад
Hi Chintha, Interesting. Just use some extra space to separate the values as in the last observation you want to keep first and last name in one variable which have one space in between them. and use an ampersand in the Input statement with name variable. see below e.g. - Data a; Input name & $20. salary age; Datalines; mani 2300 24 Anil 2500 45 Maheshmani 3000 28 Mahesh chintha 4200 30 ; Run;
@chinthamahesh4561
@chinthamahesh4561 3 года назад
@@learnerea thank you sir, its working
@rajutelagareddi2036
@rajutelagareddi2036 3 года назад
@@learnerea sir what & do here
@sureshnarayasamy89
@sureshnarayasamy89 3 года назад
@@rajutelagareddi2036, Normally char values read only 8 characters long by default , sometime the values of the char exceeds 8 , so we use the char length like positionally $1-20 or in length $20. but these won't work properly if there is a space in the variable value . in our case can't be read properly with $1-20 or in length $20. because it won't take spaces . so , if you put '&' in the beginning like & $20. This means it will considers space even two or more spaces . even if your values is , & $20 this will work ..
@rusdianto268
@rusdianto268 3 года назад
Can we do this in proc sql?
@learnerea
@learnerea 3 года назад
You can use row number partition by in SQL and not in Proc SQL
@ashutoshlatoriya7363
@ashutoshlatoriya7363 3 года назад
Sir when I am practicing this the count variable is not getting created Why is it ??
@learnerea
@learnerea 3 года назад
Please put your syntax here so that we could review that
Далее
🦊🔥
00:16
Просмотров 765 тыс.
This mother's baby is too unreliable.
00:13
Просмотров 7 млн
Сколько стоит ПП?
00:57
Просмотров 338 тыс.
first.variable and last.variable.mp4
12:39
Просмотров 29 тыс.
PROC CONTENTS in SAS | PROC CONTENTS with VARNUM
9:02
SAS: PDV (Program Data Vector)
7:50
Просмотров 2,6 тыс.
🦊🔥
00:16
Просмотров 765 тыс.