Search the site...

SASCRUNCH TRAINING
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
Picture
Programming Tips 1


This project has more than 20 sections. 

In later sections, we often provide code that is based on tables created in previous sections.

For example, the code we run in the last section is based on the SALES_Q1 table created in the very beginning:
proc sql;
select 
  distinct 
    qtr(datepart(tran_date)) 
      as quarter, 
    year(datepart(tran_date)) 
      as year
from sales_q1;
quit;

If the SALES_Q1 table is not already created, you will see the error message below:

​ERROR: File WORK.SALES_Q1.DATA does not exist.
Picture

For your convenience, we include the code for the previously generated tables in the yellow box.

Run the code in the yellow box if you see the error message above.
Okay. got it!
Already a member? Go to member's area.