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.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 622 views
  • 0 likes
  • 2 in conversation