diff --git a/viya/mv_createfile.sas b/viya/mv_createfile.sas index 7806e63..6778910 100644 --- a/viya/mv_createfile.sas +++ b/viya/mv_createfile.sas @@ -258,6 +258,17 @@ run; ,msg=%str(&SYS_PROCHTTP_STATUS_CODE &SYS_PROCHTTP_STATUS_PHRASE) ) +%local libref2; +%let libref2=%mf_getuniquelibref(); +libname &libref2 JSON fileref=&fname1; +/* Grab the follow on link */ +data &outds; + set &libref2..links end=last; + if rel='createChild' then do; + &dbg put (_all_)(=); + end; +run; + /* URI of the created file */ %let fileuri=%trim(%mfv_getpathuri(&path/&name)); @@ -314,6 +325,7 @@ run; /* clear refs */ filename &fname1 clear; filename &fref clear; + libname &libref2 clear; %end; %mp_abort(