以下代码有一条错误消息,我正在努力解决这个问题。错误消息是:“未分配 Libname HDMAPP”。
提前感谢您的帮助!
%let tmpschema = HDMAPP; *schema for transient tables, test-HDMAPP, prod-HDMAPP;
%let userid = &uid; *data mart user;
%let password = &pw; *data mart password;
%let memschema = HDMTST; *schema for member tables;
%let datasrc = PHEDISRP; *odbc data source to connect to db2;
proc sql;
connect to odbc as HDMconnect (datasrc=&datasrc user=&userid password=&password);
create table &tmpschema..testmp as
select * from connection to HDMconnect
(select * from HDMPRD.MEMBER_CMPL);
disconnect from HDMconnect;
quit;