MACROs in SAS | SAS MACROs All in One | MACRO Programming in SAS Complete Tutorial

  Рет қаралды 68,291

Learnerea

Learnerea

Күн бұрын

This is another video to enhance your SAS Skill and become a pro by learning the MACROs in SAS. This video covers almost everything which a beginner would require to learn to be able to start Macro programming and become a pro.
This video covers the following topics:
► Introduction to MACROS in SAS
► Macro Variables
► Different ways of creating macro variables in SAS
► %if %then %else in SAS Macros
► %STR in SAS
► %EVAL in SAS
► %SYSFUNC and Usage of % in SAS MACROs
► MPRINT
► MLOGIC
► SYMBOLGEN
► %LET to create a macro variable
► Macro Parameters
► INTO Clause in Proc SQL
► CALL Symput Routine
#Learnerea
#SASTraining #SASTutorial #SASCourse #SASTutorialForBeginners #SAS #SASforBeginners
#SASProgramming #SASTProgrammingForBeginners #SASProgrammingTutorial
Contacts:
Facebook ► / learnerea
Download the excel files for practice data
GitHub ► github.com/LEA...

Пікірлер: 71
@rameshbalami2075
@rameshbalami2075 3 жыл бұрын
I was struggling to understand macros in sas...n just managed to get what I want ...thnx so much..u made it very easy to understand
@learnerea
@learnerea 2 жыл бұрын
Glad you liked it
@sandeepmane8694
@sandeepmane8694 3 жыл бұрын
Sir your explanation is excellent and slowly which is clearly understand Plz sir I want a some videos like 1)some statistical test in SAS 2)CDISC (SDTM,ADAM) 3) Clinical trials in SAS 4)CRF annotation 5) Randomisation and sample size calculation 6) Table and listing creation I hope you will above topic video as early as possible
@learnerea
@learnerea 2 жыл бұрын
Sure will do these
@ajaytodankar2864
@ajaytodankar2864 3 жыл бұрын
Very useful and simplest way to learn macros.. Great job
@learnerea
@learnerea 2 жыл бұрын
Glad you liked it
@osamahmood1678
@osamahmood1678 2 жыл бұрын
Thanks for this very informative tutorial on SAS Macros and Debugging
@learnerea
@learnerea 2 жыл бұрын
Glad you liked it
@TheSafi4027
@TheSafi4027 2 жыл бұрын
Thank you for the tutorial ! Awesome and very well explained...Much Appreciated....
@nithyaangamuthu6782
@nithyaangamuthu6782 2 жыл бұрын
Explained very clearly. Thank you so much.
@learnerea
@learnerea 2 жыл бұрын
Thank you Nithya
@memoriesforlife7685
@memoriesforlife7685 3 жыл бұрын
clearly understand macros and very useful for beginner to
@learnerea
@learnerea 3 жыл бұрын
Thank you for complement
@meghajain4544
@meghajain4544 2 жыл бұрын
VERY NICE. U HAVE EXPLAINED VERY EASILY
@learnerea
@learnerea 2 жыл бұрын
Glad you liked it
@sakwael
@sakwael 2 жыл бұрын
Thank you for the tutorial ! super clear and very well explained
@learnerea
@learnerea 2 жыл бұрын
Glad you liked it
@ashokballipalli237
@ashokballipalli237 3 жыл бұрын
Please do videos of clinical sas... Ur explanation is clear Sir...
@learnerea
@learnerea 3 жыл бұрын
as soon as possible
@guillermoramos4043
@guillermoramos4043 Жыл бұрын
Dear Learmea In the first conditional example when you run your macro with "SUV" you do not got what you wanted; To get what you wanted, in line 25 you shoud have written: where upcase(type) ne "HYBRID";
@learnerea
@learnerea Жыл бұрын
Sounds like a good suggestion which I can validate if you could help me with the time stamp when this was explained in the video
@emtinantarek225
@emtinantarek225 12 күн бұрын
@@learnerea this starts from the minute 40:00 , because the output type includes Hybrid too
@bhanuchandar2805
@bhanuchandar2805 3 жыл бұрын
Please provide some interview topics on CDISC (SDTM,ADAM)
@sabyasachiojha3723
@sabyasachiojha3723 2 жыл бұрын
if you want to remove debugging option in a session then instead of terminating the session just use "options nomprint" or "options nomlogic". so no need to terminate the session.
@tomasknor9575
@tomasknor9575 8 ай бұрын
Thank you for your tutorial.
@learnerea
@learnerea 7 ай бұрын
You are welcome!
@bishwarup1429
@bishwarup1429 2 жыл бұрын
Very useful tutorial. Thank you sir.
@learnerea
@learnerea 2 жыл бұрын
I'm glad you liked it
@kidsplayhouse4931
@kidsplayhouse4931 3 жыл бұрын
Please do interview questions on healthcare analytics on sas
@7979sunny
@7979sunny 7 ай бұрын
Hello..I have a query regarding SAS macros. When we convert local macro variable to global variable using %global statement. Can we use that macro variable in data or proc step and could you plz let me know the procedure for that. Thanks In Advance!
@dominicmutiso1502
@dominicmutiso1502 2 жыл бұрын
Is this a complete guide to prepare for the SAS advanced exam on Macros?
@learnerea
@learnerea 2 жыл бұрын
This has been made keeping organisational requirements in mind, not really sure if this covers all that comes in the exam
@dominicmutiso1502
@dominicmutiso1502 2 жыл бұрын
@@learnerea thank you.
@monikapatil5537
@monikapatil5537 9 ай бұрын
Thank you so much Sir......
@learnerea
@learnerea 8 ай бұрын
Most welcome
@3rdEyeSpiritual
@3rdEyeSpiritual 2 жыл бұрын
Thanks good video, if possible please put the excel file (SASHELP.CARS0. file that used in above video , so that we can load and try practice same. thanks
@learnerea
@learnerea 2 жыл бұрын
Glad you liked it. If you mean the dataset sashelp.cars then it's available in all the sas packages...you can start using the same way as it's shown in the video. if there is some data sashelp.cars0 which we have used to explain in the video, please help us with the time stamp when you see this table name... we will try to upload the data on github and you can download it from there
@aspiren81
@aspiren81 2 жыл бұрын
thank you for your video. Why did't we use %upcase ?
@learnerea
@learnerea 2 жыл бұрын
would you be able to put the time stamp when you see me not using this where I should had to, I'll check and get back to you
@JoelHernandez-vs1kn
@JoelHernandez-vs1kn Жыл бұрын
Gracias
@learnerea
@learnerea Жыл бұрын
Contento, fue útil
@deepakkumaar9665
@deepakkumaar9665 3 жыл бұрын
Awesome sir
@raninamburi3280
@raninamburi3280 Жыл бұрын
Hi Sir, do you teach R and python?
@learnerea
@learnerea Жыл бұрын
Yes, there is whole play list of python - Complete Python Tutorial for Beginners - kzbin.info/aero/PL4GjoPPG4VqPUklqM_kq5wHJDsAWV2Ue- Complete NumPy Tutorial for Beginners - kzbin.info/aero/PL4GjoPPG4VqNz8W3JRDD-uRcM9WVJHYve Data Transformation and Analysis with Pandas - kzbin.info/aero/PL4GjoPPG4VqP0BNdnIZQqjCYodmtFCcee Visualization in Python with Matplotlib - kzbin.info/aero/PL4GjoPPG4VqN4dsP39m4QfpZSUrv2y8Iu Visualization in Python with Seaborn - kzbin.info/aero/PL4GjoPPG4VqOAwSNw2I-PXUcjw1frHmW2 Data Science Playlist - kzbin.info/aero/PL4GjoPPG4VqOmyh7hQ730evtLaz04LwSf Statistics Playlist - kzbin.info/aero/PL4GjoPPG4VqMAGTXiPYBHXgBu9Da1qrOs
@ashokdevendra8978
@ashokdevendra8978 3 жыл бұрын
Super
@GajendraThapa-np9tv
@GajendraThapa-np9tv Жыл бұрын
Could you please share datasets all_cars_summ and cars_summary at 19.02?
@learnerea
@learnerea Жыл бұрын
would you mind putting timestamp here when you see these datasets being used.. that will help us to quickly find
@GajendraThapa-np9tv
@GajendraThapa-np9tv Жыл бұрын
@@learnerea 19:02
@GajendraThapa-np9tv
@GajendraThapa-np9tv Жыл бұрын
@@learnerea and 26:12
@Izumi1703
@Izumi1703 2 жыл бұрын
For the creating macro variables with call symput option, you had some converted message in the log, how can we get rid of that as it is not normally accepted as a log issue? it said numeric values have been converted to character.
@learnerea
@learnerea 2 жыл бұрын
Hi Lzumi, Thanks for watching the video. would you mind putting the timeframe over here, that will help us to qucikly reach to the specific point where you have problem.
@Izumi1703
@Izumi1703 2 жыл бұрын
@@learnerea Ah yes sorry my bad, at 32:40 :)
@learnerea
@learnerea 2 жыл бұрын
@@Izumi1703 Though it's not an issue one need to fix but if that's a matter of concern for you then you can simply put the numeric value in quotation e.g. instead of 94 you can just put '94'
@Izumi1703
@Izumi1703 2 жыл бұрын
​@@learnerea It actually is an issue that I need to fix since in my job it is not accepted so thank you for the solution provided :)
@learnerea
@learnerea 2 жыл бұрын
@@Izumi1703 Happy to know that the provided solution worked for you. Feel free to post any further queries where you are stuck in. You can also write to us directly on learnerea.edu@gmail.com
@AnkitaSingh-yg8cz
@AnkitaSingh-yg8cz 3 жыл бұрын
I got this error NOTE: The quoted string currently being processed has become more than 262 bytes long. You might have unbalanced quotation marks. how can i slove
@learnerea
@learnerea 3 жыл бұрын
If your script is not too long, can you please put that here
@subho95
@subho95 10 ай бұрын
How to do the same thing in Python?
@learnerea
@learnerea 10 ай бұрын
better you should mention a problem statement here which you would like to solve in python same as it is solved in SAS using Macros
@mariemargaryan1995
@mariemargaryan1995 Жыл бұрын
hi friends, who can help me with this? i should create call dataset from SASHELP library. Create macro variable that will be used to filter the dataset BASEBALL to keep observations where player’s Surname isn’t starting with “W” letter. Create a macro program to count how many players are playing - a) in the same DIV and in the same TEAM, b) in the same LEAGUE and at the same POSITION.
@learnerea
@learnerea Жыл бұрын
you don't necessorly require a macro, try this - data call(drop=last_name); set sashelp.baseball; /*separate last name from the full name */ last_name = scan(name,2,","); /*filter for those whose surname doesn't starts with w */ where substr(lower(name),1,1) ne 'w'; run; /*use proc frequency to get the counts by team and div you are looking for */ proc freq data=call; tables team*div/nocum nopercent norow nocol; run;
@sourabhsahu3419
@sourabhsahu3419 2 жыл бұрын
👍
@ARjunSIngh-np1fe
@ARjunSIngh-np1fe 2 жыл бұрын
How can we store a date so that whenever we run a program next time it picks the date when the program was last executed...
@learnerea
@learnerea 2 жыл бұрын
If you put this with an example... I'll be able to provide you the solution specific to that... which will be helpful for you...
@somcana
@somcana Жыл бұрын
Why I am having problem when I use work library? OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 94 ODS HTML CLOSE; 95 &GRAPHTERM; ;*';*";*/;RUN;QUIT; 96 QUIT;RUN; 97 ODS HTML5 (ID=WEB) CLOSE; 98 99 FILENAME _GSFNAME; 100 DATA _NULL_; 101 RUN;
@learnerea
@learnerea Жыл бұрын
can you put your code as well
@wenjiezhou8888
@wenjiezhou8888 2 жыл бұрын
Thanks for the tutorial! It's very useful and helpful in my work!
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,4 МЛН
Cute
00:16
Oyuncak Avı
Рет қаралды 11 МЛН
SAS Tutorial | Beyond the Basics of Macro
2:37:28
SAS Users
Рет қаралды 30 М.
SAS MACRO INTERVIEW QUESTIONS 1 | SAS ADVANCED TRAINING
16:01
SAS MACROS (Part 1):  SAS for Beginners (Lesson 29)
15:02
Learning with Jelly
Рет қаралды 3,3 М.
A Beginners Guide to Using Arrays and DO Loops
20:23
SAS Users
Рет қаралды 18 М.
SAS MACROS 1  SAS MACROS AND EDITORS 1  SAS TRAINING VIDEO 18
43:17
SAS Tutorial | Getting the Most out of SAS Macro and SQL
45:30
Using Macro Code If-Then and Do Loops in SAS | Data Tutorial | Macros
11:38
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,4 МЛН