BookmarkSubscribeRSS Feed
DavidPhillips2
Rhodochrosite | Level 12

How do you set up an archive table job in Data Integration Studio?  I need to insert new rows nightly and keep the old rows.  I'm playing with the append transformation and merge transformation and having a hard time with both.  It looks like the merge transformation is the way to go.  For the merge transformation, I selected all columns from the source table on the insert tab.  I selected only the composite key columns on the match tab.  I know I'm missing a step.

 

The error message is One or more expression(s) are invalid.  Please fix the expression(s).  the insert statement is incomplete: Both the left and right operands are missing.  Fix the invalid expression.  The insert statement is incomplete: A set expression is missing a field or value.

1 REPLY 1
Patrick
Opal | Level 21

@DavidPhillips2 

As far as I understand things the Merge transformation is creating SQL MERGE code which allows you to combine INSERT and UPDATE in a single SQL. 

From what you describe you need only INSERT. If you've got the delta records already then I'd be using the Append transformation with append to existing, if you first have to work out the delta records then I'd be using the SQL INSERT transformation. 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—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
  • 767 views
  • 0 likes
  • 2 in conversation