Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL in SAS, Program Check

Author  Topic 

idiq
Starting Member

2 Posts

Posted - 2010-08-17 : 14:26:44
Hi all,

I am VERY VERY new to programming in general, and working with SAS. I am writing a small program in SQL and was hoping to get some guidance. Here is what's going on:

-There is a master table with hundreds of rows, and multiple fields
-SOME rows and specifically SOME fields need to be updated in master
-ALL data in the update table replaces only SOME data in master
-An Excel sheet with the update data exists
-Each row has a unique identifier (e.g. 1200, 1201, 1202)

I've imported the Excel sheet data into SAS as a Table.

Can you suggest the best functions to execute this? I don't want anyone to write the code for me, but since I have no clue what functions exist (or do what) I'm just looking for help as to which would be best for this.

Something where:
-On conflict Table_Master and Table_update, Table_update wins,
-On conflict Table_Master data replaced by table_update data,

I've been investigating the CASE and UPDATE functions.

X002548
Not Just a Number

15586 Posts

Posted - 2010-08-17 : 14:44:51
This is a sql server site, sorry...

And I don't know SAS (Ok Tara. there's something I don't know...)

Try Here

http://support.sas.com/documentation/onlinedoc/code.samples.html

Or
http://www.nesug.org/proceedings/nesug08/bb/bb04.pdf

Or

http://www.google.com/webhp?hl=en#hl=en&source=hp&q=SAS+SQL+Programming+site&aq=f&aqi=&aql=&oq=&gs_rfai=CR39_OthqTLqcKJSEygSouLz6DAAAAKoEBU_QzWIC&fp=9771db726384d331



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

idiq
Starting Member

2 Posts

Posted - 2010-08-17 : 14:48:59
Whoops, I just did a Google query on SQL Forum and this came up... See how new I am to programming?

I just know I can use the SQL Language in SAS to execute programs, and I'd rather code in that than in SAS (I believe SQL usage > SAS usage).

Thanks...
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2010-08-17 : 16:24:29
The SAS language is far from SQL Server syntax. SAS have their own syntax.


N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page
   

- Advertisement -