Skip to Main Content
Hands-On SAS for Data Analysis
book

Hands-On SAS for Data Analysis

by Harish Gulati
September 2019
Beginner to intermediate content levelBeginner to intermediate
346 pages
7h 35m
English
Packt Publishing
Content preview from Hands-On SAS for Data Analysis

Leveraging automatic global macro variables

As a programmer, it is ideal if you are aware of as many automatic global macro variables as possible. It is quite a task to remember all of them. However, there are quite a few that come in handy often. Using the automatic global variable the SYSDAY, we will try and produce two types of reports for a sales manager. If it's midweek, we will produce a detailed report. For the end of the week, our aim will be to produce a weekly summary.

We will produce a new Sales dataset with the date, product name, and the sales (in thousands). To try and replicate the output in the following pages, change the day condition as the following code will only produce an output if the day of the macro run is Wednesday ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Big Data Analytics with SAS

Big Data Analytics with SAS

David Pope, Subhashini S Tripathi
An Introduction to SAS Visual Analytics

An Introduction to SAS Visual Analytics

Tricia Aanderud, Rob Collum, Ryan Kumpfmiller

Publisher Resources

ISBN: 9781788839822Supplemental Content