BookmarkSubscribeRSS Feed
Klaus1
Calcite | Level 5

Hi, I would like to do graph in SAS. But I have an error:

axis1   
  order = (0 to &max1. by 6)
  major = (w=2 height=3pt )
  %do i=0 %to &max1.;

  %if %sysfunc(MOD(&i,12) = 0) %then %do;
  origin= (,2.0in) 
  %end;
  %else %do;
  origin= (,1.0in)
  %end;

  %end;
  minor = (number=1 w=2 height=1.5pt)
  width = 2;
2 REPLIES 2
PeterClemmensen
Tourmaline | Level 20

This is clearly part of a larger chunk of code. Please post the entire thing 🙂

andreas_lds
Jade | Level 19

Closing %sysfunc before "= 0" should solve the problem.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 836 views
  • 1 like
  • 3 in conversation