From 0ce7efee3e3fef5652234cc3ed17ba2bb312abc7 Mon Sep 17 00:00:00 2001 From: munja Date: Mon, 13 Dec 2021 11:26:17 +0000 Subject: [PATCH] fix: declaring msg variable prior to set statement in mp_copyfolder.sas --- all.sas | 4 ++-- base/mp_copyfolder.sas | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/all.sas b/all.sas index c6fbf44..1fa3ba6 100644 --- a/all.sas +++ b/all.sas @@ -2790,9 +2790,9 @@ run; /* create folders and copy content */ data _null_; - set work.&tempds; - length msg $256; + length msg $200; call missing(msg); + set work.&tempds; if _n_ = 1 then dpos+sum(length(directory),2); filepath2="&target/"!!substr(filepath,dpos); if file_or_folder='folder' then call execute('%mf_mkdir('!!filepath2!!')'); diff --git a/base/mp_copyfolder.sas b/base/mp_copyfolder.sas index d52fa6b..837882b 100644 --- a/base/mp_copyfolder.sas +++ b/base/mp_copyfolder.sas @@ -54,9 +54,9 @@ /* create folders and copy content */ data _null_; - set work.&tempds; - length msg $256; + length msg $200; call missing(msg); + set work.&tempds; if _n_ = 1 then dpos+sum(length(directory),2); filepath2="&target/"!!substr(filepath,dpos); if file_or_folder='folder' then call execute('%mf_mkdir('!!filepath2!!')');