Skip to Main Content
SAS Certified Professional Prep Guide
book

SAS Certified Professional Prep Guide

by SAS Institute
October 2019
Intermediate to advanced content levelIntermediate to advanced
430 pages
19h 4m
English
SAS Institute
Content preview from SAS Certified Professional Prep Guide

Scenario 10

Code Solution

Note: On the live exam, you will be evaluated both on the results of your code and the code itself. Your code should be similar to the following example code, but does not need to match exactly:
proc sql;
   create view work.phonelist as                     /*1*/
      select Department format=$25.,                 /*2*/
             EmployeeName as Name format=$25.,
             PhoneNumber 'Home Phone' format=$16.
      from certadv.empadd as a                       /*3*/
           inner join
           certadv.empph as p
           on a.EmployeeID = p.EmployeeID
           inner join
           certadv.emporg as o
           on o.EmployeeID = p.EmployeeID
      where PhoneType='Home';                        /*4*/
quit;

proc sql number;                                     /*5*/
title 'Sales Management Department Home Phone Numbers';
   select Name, PhoneNumber
      from work.phonelist                            /*6*/
      where Department='Sales Management'            /*7*/ order by Name; ...
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

SAS Certified Specialist Prep Guide

SAS Certified Specialist Prep Guide

SAS Institute
SAS in Practice

SAS in Practice

Ekta Saraogi

Publisher Resources

ISBN: 9781642954692