mirror of
https://github.com/sasjs/core.git
synced 2025-12-10 22:14:35 +00:00
fix: wrapping filter query in brackets to allow logic to be encapsulated when using with other logic sources
This commit is contained in:
3
all.sas
3
all.sas
@@ -3309,13 +3309,14 @@ filename &outref temp;
|
||||
file &outref lrecl=32800;
|
||||
set &inds end=last;
|
||||
by SUBGROUP_ID;
|
||||
if _n_=1 then put '(';
|
||||
if _n_=1 then put '((';
|
||||
else if first.SUBGROUP_ID then put +1 GROUP_LOGIC '(';
|
||||
else put +2 SUBGROUP_LOGIC;
|
||||
|
||||
put +4 VARIABLE_NM OPERATOR_NM RAW_VALUE;
|
||||
|
||||
if last.SUBGROUP_ID then put ')'@;
|
||||
if last then put ')';
|
||||
run;
|
||||
%end;
|
||||
|
||||
|
||||
@@ -88,13 +88,14 @@ filename &outref temp;
|
||||
file &outref lrecl=32800;
|
||||
set &inds end=last;
|
||||
by SUBGROUP_ID;
|
||||
if _n_=1 then put '(';
|
||||
if _n_=1 then put '((';
|
||||
else if first.SUBGROUP_ID then put +1 GROUP_LOGIC '(';
|
||||
else put +2 SUBGROUP_LOGIC;
|
||||
|
||||
put +4 VARIABLE_NM OPERATOR_NM RAW_VALUE;
|
||||
|
||||
if last.SUBGROUP_ID then put ')'@;
|
||||
if last then put ')';
|
||||
run;
|
||||
%end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user