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-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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