BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
_LB
Fluorite | Level 6 _LB
Fluorite | Level 6

hanks.

Hello all-

Have a basic question on PROC SQL-

When I run a delete query such as below:

proc sql;

delete  from HH.hh_TEST

where Month_and_Year_of_Observation ='NOV 2011';

QUIT;

It only erases two entries at a time instead of all 300. It is running off an Access DB if that makes any difference.

How can I erase all 300 w/o necessary running a loop.

And why does it do this..

Thanks.

Lawrence

1 ACCEPTED SOLUTION

Accepted Solutions
polingjw
Quartz | Level 8

Look at using the DIRECT_EXE = DELETE option on the LIBNAME statement.

View solution in original post

6 REPLIES 6
polingjw
Quartz | Level 8

Look at using the DIRECT_EXE = DELETE option on the LIBNAME statement.

_LB
Fluorite | Level 6 _LB
Fluorite | Level 6

Thanks Poli!

_LB
Fluorite | Level 6 _LB
Fluorite | Level 6

Poli-

OK-I have used the the direct DIRECT_EXE = DELETE option with access 2003.

DO you lnow the provider for Access 2010?

I have the string

libname T oledb provider="Microsoft.Jet.OLEDB.4.0"

properties=('data source'='X:\X.MDB') DIRECT_EXE = DELETE but the provider is not correct for access 10-

I went online and found a different "provider- but that fails too.

Thanks.

Lawrence

polingjw
Quartz | Level 8

I don't have any Access 2010 applications to test on.  Problem Note 9731 on the SAS support site might be of some help to you.

_LB
Fluorite | Level 6 _LB
Fluorite | Level 6

OK...WIll take a look. Thanks.

_LB
Fluorite | Level 6 _LB
Fluorite | Level 6

FYI:

The replacement is Microsoft.ACE.OLEDB.12.0 for access 2007/2010

from Microsoft.JET.OLEDB.4.0 for access 2003

in case you migrate up-which I don't recommend!

Lawrence

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