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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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