DATA Step, Macro, Functions and more

Catalog error when using Proc DS2

Reply
New Contributor
Posts: 3

Catalog error when using Proc DS2

I am trying to use the DS2 procedure and receiving the following error. We are using SAS 9.4

 

C300UW is another database in our metadata but is not even being referenced in the example.

 

 proc ds2;

ERROR: Duplicate catalog name, C300UW, encountered in connection string, DSN or file DSN
ERROR: PROC DS2 initialization failed.
 data;
 method run();
 set sashelp.cars;
 end;
 enddata;
 run;
 quit;
 
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE DS2 used (Total process time):
real time 0.89 seconds
cpu time 0.31 seconds
 
New Contributor
Posts: 3

Re: Catalog error when using Proc DS2

You have to specify "connection string": 

 

proc ds2 nolibs
              conn="(driver=base;
              catalog=work;
              schema=(name=work;primarypath={%sysfunc(pathname(work))}))";

 

data test1(overwrite=yes);
method run();
set work.cars;
end;
enddata;
run;
quit;

Ask a Question
Discussion stats
  • 1 reply
  • 228 views
  • 0 likes
  • 2 in conversation