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

fix: adding support for multilabel and notsorted formats

included additional test job covering multiple scenarios.  Closes #337
This commit is contained in:
Allan
2023-06-21 16:41:46 +01:00
parent b8cec22a88
commit 4f481ec8b4
8 changed files with 328 additions and 141 deletions

View File

@@ -67,16 +67,24 @@ proc format lib=&libcat cntlout=&cntlds;
%end;
run;
data &cntlout;
data &cntlout/nonote2err;
if 0 then set &ddlds;
set &cntlds;
if type in ("I","N") then do; /* numeric (in)format */
by type fmtname notsorted;
/* align the numeric values to avoid overlapping ranges */
if type in ("I","N") then do;
%mp_aligndecimal(start,width=16)
%mp_aligndecimal(end,width=16)
end;
/* create row marker. Data cannot be sorted without it! */
if first.fmtname then fmtrow=0;
fmtrow+1;
run;
proc sort;
by type fmtname start;
by type fmtname fmtrow;
run;
proc sql;