BookmarkSubscribeRSS Feed
LAtwood
Calcite | Level 5

I am trying to update a table via odbc with a temporary table I created in SAS Enterprise Guide.

So far I have the below code, but it is not working:

libname imcsrs82 odsbc noprompt="Driver={Ingres 9.2}; Server=imcsrs82; Database=imcsdb_dev; Uid=****; Pwd=****";

proc sql;

update imcsrs82.pay_epp_lkup a

set

ytd_earnings = a.ytd_earnings + (select b.qtr_amount from work.QUERY_FOR_IMCS_EPP_QRT B

where a.clock_num=b.clock_num and a.pay_yr = b.pay_year);

run;

I receive the error No cursor name available.  Any help would be appreciated.

Thanks

3 REPLIES 3
SASKiwi
PROC Star

Run your program again with this statement added: options sastrace = ',,,d' SASTRACELOC = SASLOG;

Then post your log which will contain a lot more details of what is happening.

LAtwood
Calcite | Level 5

I have attached the log to my previous post.


SASKiwi
PROC Star

Perhaps you could try specifying a cursor type like KEYSET_DRIVEN:

http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#p1pdx0nznnifhhn1rw...

Might also be worth raising a Tech Support track.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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