This course covers macro quoting functions, macro storage, and macro techniques for advanced data access, table lookup operations, advanced parameter validation, and macro windows.
Before attending this course, you should have completed the SAS Macro Language 1: Essentials course or have equivalent knowledge and experience. Specifically, you should be able to
- write macro programs that contain iterative processing and conditional processing
- create local and global macro variables
- create macro variables using the SYMPUTX routine
- use indirect macro variable references
- use the SQL procedure SELECT statement INTO clause.
This course addresses Base SAS software.
Who should attend
Experienced SAS macro programmers who want to learn advanced techniques
Delegates will learn how to
- create hierarchical, menu-driven macro applications
- exploit stored, compiled, and autocall macro facilities
- exploit macro quoting functions
- generate data-driven macro calls
- perform table lookup operations
- apply SAS or user-defined formats to macro variables
- automatically convert data set variables to macro variables
- search for all CSV, Excel, or Microsoft Access files in a directory and all subdirectories and automatically import each file, worksheet, or table into a SAS data set
- search for all SAS programs in a directory and all subdirectories and automatically submit every program
- exploit SAS I/O and external file functions
- create your own macro functions
- create macro functions that return the number of observations in a data set or a subset of a data set
- create a macro function that validates whether a selected variable exists in a selected data set and returns the variable's type
- create custom windows and menus that interactively gather and validate user-supplied parameter values
- stored compiled macro facility
- autocall macro facility
Protecting Special Characters
- protecting constant text
- protecting resolved values
Reading SAS Data
- data-driven macro calls
- SAS I/O functions
Reading External Data
- importing CSV files
- importing Microsoft Excel files
Table Lookup Techniques
- macro variables
Validating User Input
- macro parameters
- macro windows
Frequently asked questionsSee all of our FAQs
How can I create an account on myQA.com?
There are a number of ways to create an account. If you are a self-funder, simply select the "Create account" option on the login page.
If you have been booked onto a course by your company, you will receive a confirmation email. From this email, select "Sign into myQA" and you will be taken to the "Create account" page. Complete all of the details and select "Create account".
If you have the booking number you can also go here and select the "I have a booking number" option. Enter the booking reference and your surname. If the details match, you will be taken to the "Create account" page from where you can enter your details and confirm your account.
Find more answers to frequently asked questions in our FAQs: Bookings & Cancellations page.
How do QA’s virtual classroom courses work?
Our virtual classroom courses allow you to access award-winning classroom training, without leaving your home or office. Our learning professionals are specially trained on how to interact with remote attendees and our remote labs ensure all participants can take part in hands-on exercises wherever they are.
We use the WebEx video conferencing platform by Cisco. Before you book, check that you meet the WebEx system requirements and run a test meeting (more details in the link below) to ensure the software is compatible with your firewall settings. If it doesn’t work, try adjusting your settings or contact your IT department about permitting the website.
Learn more about our Virtual Classrooms.
How do QA’s online courses work?
QA online courses, also commonly known as distance learning courses or elearning courses, take the form of interactive software designed for individual learning, but you will also have access to full support from our subject-matter experts for the duration of your course. When you book a QA online learning course you will receive immediate access to it through our e-learning platform and you can start to learn straight away, from any compatible device. Access to the online learning platform is valid for one year from the booking date.
All courses are built around case studies and presented in an engaging format, which includes storytelling elements, video, audio and humour. Every case study is supported by sample documents and a collection of Knowledge Nuggets that provide more in-depth detail on the wider processes.
Learn more about QA’s online courses.
When will I receive my joining instructions?
Joining instructions for QA courses are sent two weeks prior to the course start date, or immediately if the booking is confirmed within this timeframe. For course bookings made via QA but delivered by a third-party supplier, joining instructions are sent to attendees prior to the training course, but timescales vary depending on each supplier’s terms. Read more FAQs.
When will I receive my certificate?
Certificates of Achievement are issued at the end the course, either as a hard copy or via email. Read more here.