Skip to content

Commit eb976cb

Browse files
Update domino.sas to ingest SDTM_DATASET env variable
1 parent 9d011d6 commit eb976cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Programs/domino.sas

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@
150150
%if %sysfunc(find(%upcase(&__PROJECT_TYPE.),RE)) ge 1 %then %do;
151151
* imported read-only SDTM data, using the data cutoff date.. ;
152152
* .. and sdtm variable to identify the correct snapshot to use ;
153-
libname SDTM "/mnt/imported/data/snapshots/SDTMBLIND/&__DCUTDTC." access=readonly;
153+
%let __SDTM_DATASET = %sysget(SDTM_DATASET);
154+
%if &__SDTM_DATASET. eq %str() %then %put %str(ER)ROR: Environment Variable SDTM_DATASET not set;
155+
libname SDTM "/mnt/imported/data/snapshots/&__SDTM_DATASET./&__DCUTDTC." access=readonly;
154156
* local read/write acces to ADaM and QC folders;
155157
libname ADAM "&__localdata_path./ADAM";
156158
libname ADAMQC "&__localdata_path./ADAMQC";
@@ -251,4 +253,4 @@ options
251253
* List all the libraries that are currently defined;
252254
libname _all_ list;
253255

254-
*EOF;
256+
*EOF;

0 commit comments

Comments
 (0)