BookmarkSubscribeRSS Feed
HarshadMadhamshettiwar
Obsidian | Level 7

Dear Experts,

I was trying to import an excel sheet using import wizard and it was not working correctly.

It was omiting one specific column out of 22 columns which has the name "Type", I didn't have any idea of how it was happening so I tried differents things as changing the position of the column in excel sheet, changing its name to something other than "type", restarting the session, but even after doing all of these things wizard omitted the same column evrytime.

But when I used Proc Import, it worked like charm.

Is it any kind of bug that SAS needs to look at?

 

Here is the log message for both methods.


proc import bug2.PNG

2 REPLIES 2
Jagadishkatam
Amethyst | Level 16
did you try using the options validvarname=any;
could you please try and let me know if it resolved the issue
Thanks,
Jag
HarshadMadhamshettiwar
Obsidian | Level 7

Hello Jagdishkatam,

 

As you mentioned I tried options validvarname=yes; 

but it is still omiting that particular variable.

 

Attached is the screenshot of the log before and after above option is used. 

 

options validvar name not working.PNG

 

Thanks.

 

Harshad M.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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