1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-14 12:00:05 +00:00

fix: adding schema to pg output

This commit is contained in:
vrh
2020-08-04 21:19:00 +02:00
parent fc8a39bbca
commit dd18d1d5a8
2 changed files with 66 additions and 139 deletions

View File

@@ -222,7 +222,9 @@ run;
from dictionary.libnames
where libname="&libref" and engine='POSTGRES';
%let schema=%sysfunc(coalescec(&schemaactual,&schema,&libref));
data _null_;
file &fref mod;
put "CREATE SCHEMA &schema;";
%do x=1 %to %sysfunc(countw(&dsnlist));
%let curds=%scan(&dsnlist,&x);
data _null_;