Hi,
I attempted A)0-232 Advanced performance based exam . I have one question.
I had question like call macro and use macro debugging tool to get parameter out of that called macro.
My query: as they did not give me any path for that macro. so I can not use %include statement without knowing path.
so what is another method to call macro in SAS studio version of SAS.
please answer my question so I can do it in my next attempt as I did not pass my first attempt.
Each and every help will be appreciated.
Thanks
I passed on first attempt. There's a webinar you can watch and also buy the programming guide and do all the exercises in it. That is what I did to pass. You need to know macros, SQL, and hash object.
Also, make sure you do the practice exam on the SAS website.
The practice exam is free. I suggest you look at it if you haven't already. Question 8 is similar to what you're asking. The debugging options you need are mprint, mlogic, and symbolgen. Use the % sign to call a macro. ex. %mymacro calls the mymacro macro.
https://www.sas.com/en_us/certification/resources/sas-practice-exams.html
Hi all the experts,
please help.
I have been puzzled by the same problem.
For question8 in the practice, It is not stated but it seems clear that no %include statement will be needed in the real exam.
But a simple answer to the question which required to save a macro, call it with options of mprint and mlogic and read the log contents didn't work .
Is there something we missed here?
Thank you so much
Hi:
In the SAS Macro class we cover the 3 main debugging options: MPRINT, MLOGIC and SYMBOLGEN. We also cover creating compiled macro programs and macro programs stored in an AUTOCALL library. My suggestion is that you review these topics in the Prep Guide or in the class. I cannot comment on what might or might not have been on your exam, since the questions can change for each exam taker. However, the complete Content Guide for the Advanced Programmer certification exam is here: https://www.sas.com/content/dam/SAS/documents/technical/certification/content-guide/advanced-program... where you will see that Macro topics represent 35% of the exam. Macro topics shown in the Content Guide are shown below for your reference with the debugging section highlighted:
Macro Processing (35%)
-- Create and use user-defined and automatic macro variables within the SAS Macro Language.
-- Define and use macro variables.
-- Use macro variable name delimiter. (.)
-- Use INTO clause of the SELECT statement in SQL to create a single variable or a list of variables.
-- Use the SYMPUTX routine in a DATA Step to create a single variable or a list of variables.
-- Control variable scope with:
-- %GLOBAL statement
-- %LOCAL statement
-- SYMPUTX scope parameter
-- Automate programs by defining and calling macros using the SAS Macro Language.
-- Define a macro using the %MACRO and %MEND statements.
-- Calling a macro with and without parameters.
-- Document macro functionality with comments
-- Generate SAS Code conditionally by using the %IF-%THEN-%ELSE macro statements or iterative %DO statements.
-- Use the SAS AUTOCALL facility to permanently store and call macros.
-- Use macro functions.
-- Use macro functions. (%SCAN, %SUBSTR, %UPCASE)
-- Use macro quoting functions. (%NRSTR, %STR)
-- Use macro evaluation functions. (%SYSEVALF)
-- Use %SYSFUNC to execute DATA step functions within the SAS Macro Language.
-- Debug macros.
-- Trace the flow of execution with the MLOGIC option.
-- Examine the generated SAS statements with the MPRINT option.
-- Examine macro variable resolution with the SYMBOLGEN option.
-- Use the %PUT statement to print information to the log.
-- Create data-driven programs using SAS Macro Language.
-- Create a series of macro variables.
-- Use indirect reference to macro variables. (&&, etc.)
-- Incorporate DICTONARY tables in data driven macros.
-- Generate repetitive macro calls.
I would recommend that you review the complete Content Guide to see all the topics you can expect to find on the exam.
Hope this helps,
Cynthia
Hi,
I watch the webinar. It is great. Unfortunately, I didn't find the answer for my question.
let's say %include is required to answer this kind of question. Is it possible to find the path where the macro program was located?
Please advise.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.