Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Problems with Remove statment

Problems with Remove statment

Problems with Remove statment

I have never had the occasion to use 'Remove' with a SAS program that is going through an ODBC connection to a SQL 2000 db - 'till yesterday.

I issue the statements:
Data SQLDB.entity_channels;
Modify SQLDB.entity_channels Work.RemoveEntityChannel;
by entity_id;
If channel_entity_id = REMOVEchannel_entity_id
Then remove;

In the log I even get that SAS thinks that the record(s) have been deleted.  No such luck.  The records still exist in the DB.  I will send something to SAS support with a trace, but thought I would ask the people here as well.

RE: Problems with Remove statment

well - shh-golly folks - I figured it out on my own (sorry all of those people who want stars).

so darn simple too.

When defining my ODBC connection I had intentionally left off the BCP= statement which seems to slow things down DRAMATICALLY when I do any 'Proc Append' or any modify procedures (like above) where I am JUST modifying the data in the SQL databases.  Adding the BCP=YES made everything fly - and all is good and true in the world again.  

libname SQLDB odbc
   dsn=sqlserver DATASRC="CRMTestDB" bcp=yes;

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close