BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I thought the hard part was reading a SAS Dataset and its metadata. It turned out to be easy.

The hard part actually comes when its time to update a SAS dataset after editing its content, variable attributes (like variable name, format, informat, column label, etc). What makes it seem impossible using the SAS Integrated Object Model (IOM) is the fact that not every SAS dataset has a suitable column that can be used as a primary key. Setting up an InsertCommand/DeleteCommand/UpdateCommand for an OleDBDataAdapter object requires a primary key, otherwise you get this error message:

"Dynamic SQL generation is not supported against a SelectCommand that does not return any base table information."

Now if someone out there can point me to a solution without resorting to writing and submitting a DATASTEP-based code, that would be great. Of course, with the SAS dataset content read successfully into a DataGridView control (with SAS DATE formats converted into a DateTime format), writing a DATASTEP-based code to save the grid's content into a SAS dataset should not be that difficult.

Or is it? 🙂

Thanks, Audi
1 REPLY 1
deleted_user
Not applicable
Audi, did you ever find a solution to this.

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

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 687 views
  • 0 likes
  • 1 in conversation