BookmarkSubscribeRSS Feed
frupaul
Quartz | Level 8

Hi Everyone,

 

I am creating a report for Excel using SAS. So in my scripts, I output the field names to be excel friendly giving them an alias 'Field name'n.  So the table I am creating has many fields that are named in that manner. However, SAS DI has picked on one of those fields and issued a message that id doesn't recognise it. Please see logs.

- Image 1 is a screen shot of the body of code

- Image 2 is a screen shot of the log with error message.

 

Please can anyone help?

 

Thanks,image1.PNG

image2.PNG

1 REPLY 1
Kurt_Bremser
Super User

Please do ALWAYS post code in a proper window, either using the "little running man" or the {i} button.

 

If SAS complains about all variable names with blanks, you may not have set validvarname=any.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 817 views
  • 0 likes
  • 2 in conversation