How to Extract Part of String from Right in SAS |Extracting n Number of Characters from Right in SAS

preview_player
Показать описание
We all know How to Extract Characters from Left to Right using SUBSTR but What if you have to Extract from Right to Left or Last n Number of Characters or Digits from a Text String in SAS, this video will help you know that

#Learnerea
#SASTraining #SASTutorial #SASCourse #SASTutorialForBeginners #SAS #SASforBeginners
#SASProgramming #SASTProgrammingForBeginners #SASProgrammingTutorial

Contacts:

Download the excel files for practice data
Рекомендации по теме
Комментарии
Автор

I have a variable with Hospital names: St. Marys Hospital, City Hospital, General Hospital. I asked Chat GPT to give me a function to remove Hospital from each value to save space and it basically gave me what you are describing in the video. SUBSTR(Hosp, 1, LENGTH(Hosp) - 9) . The video helps me understand the two functions better though.

malcorub
Автор

Hi sir we do not require 5, just length-4 will also give same o/p.

ajaykushwaha
Автор

nice vedio... can you please explain it to left part...?

rameshgaurappa
Автор

Is this possible to separate unequal words from each obs?

vinuvanathayan
welcome to shbcf.ru