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

Merge pull request #209 from sasjs/missref

fix: avoid: ERROR: Variable "fref" may not be initialized
This commit is contained in:
Allan Bowe
2022-04-06 18:26:45 +03:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -4308,6 +4308,7 @@ run;
data &out_ds; data &out_ds;
set &out_ds; set &out_ds;
length infoname infoval $60 fref $8; length infoname infoval $60 fref $8;
if _n_=1 then call missing(fref);
rc=filename(fref,filepath); rc=filename(fref,filepath);
drop rc infoname fid i close fref; drop rc infoname fid i close fref;
if file_or_folder='file' then do; if file_or_folder='file' then do;

View File

@@ -152,6 +152,7 @@ run;
data &out_ds; data &out_ds;
set &out_ds; set &out_ds;
length infoname infoval $60 fref $8; length infoname infoval $60 fref $8;
if _n_=1 then call missing(fref);
rc=filename(fref,filepath); rc=filename(fref,filepath);
drop rc infoname fid i close fref; drop rc infoname fid i close fref;
if file_or_folder='file' then do; if file_or_folder='file' then do;