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

Problem on Merge 2 view datasets from Sybase with LIBNAME engine.

Problem on Merge 2 view datasets from Sybase with LIBNAME engine.

Problem on Merge 2 view datasets from Sybase with LIBNAME engine.

Error message, "Object not found in database.   Error Code: -16843057  ct_send(): ", when attempted to join two view datasets from Sybase by using LIBNAME engine.
In SAS TS note, there is a sample for using Proc SQL Pass-through connect with a different alias.  How to get workaround with LIBNAME engine and Merge statement?  Below is sample code...

Libname dblib sybase server=.........;

Proc sql;
Create view vwdt1 as
Select keys,a,b,c from dblib.sybs1 order by keys;

Create view vwdt2 as
Select keys,x,y,z from dblib.sybs2 order by keys;

Data joiondt;
Merge vwdt1 vwdt2;
By keys;

RE: Problem on Merge 2 view datasets from Sybase with LIBNAME engine.

indicates whether multiple table opens in a DBMS can use the same connection. Your DBMS might have different arguments for this option; see your DBMS chapter for details.
Default value: SHAREDREAD, unless noted otherwise in your DBMS chapter.

I use Teradata, and I use pass-through SQL most of the time. But I am able to do the following with teradata engine:

data tst;
merge td.tst1(keep = key var11) td.tst2(keep = key var21);
by key;


proc sql;
create view tst1 as
select key, var11
from td.tst1;
create view tst2 as
select key, var21
from td.tst2;

data tst;
merge tst1 tst2;
by key;

You need to check SAS/Access sybase.

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