BookmarkSubscribeRSS Feed
brianhoops1
Fluorite | Level 6

I'm going through SAS Programming 1 for the Exporting Data section. The activity asks to add an ODS statement to create an Excel file.

 

I ran the below libname and outpath macro:

brianhoops1_0-1697577505802.png

Then within the activity (p106a04.sas), I used the following code:

brianhoops1_1-1697577594099.png

After running the code I received the below errors. Is there something I'm entering incorrectly?

brianhoops1_2-1697577661517.png

 

2 REPLIES 2
brianhoops1
Fluorite | Level 6
I got this figured out. In the macro, I had to remove the quotes and that did the trick.
Kondala
Calcite | Level 5

once try to write ods excel clear statment in line 32 , i think it may resolve ur issue

 

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
  • 1172 views
  • 0 likes
  • 2 in conversation