mirror of
https://github.com/sasjs/core.git
synced 2026-04-21 15:31:31 +00:00
fix: when all the entries in a format are deleted, then delete the format completely
includes 3 tests (regular delete, delete all but one, delete all and add one) Closes #341
This commit is contained in:
+2
-2
@@ -58,9 +58,9 @@
|
||||
%end;
|
||||
|
||||
proc format lib=&libcat cntlout=&cntlds;
|
||||
%if "&fmtlist" ne "0" %then %do;
|
||||
%if "&fmtlist" ne "0" and "&fmtlist" ne "" %then %do;
|
||||
select
|
||||
%do i=1 %to %sysfunc(countw(&fmtlist));
|
||||
%do i=1 %to %sysfunc(countw(&fmtlist,%str( )));
|
||||
%scan(&fmtlist,&i,%str( ))
|
||||
%end;
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user