mirror of
https://github.com/sasjs/core.git
synced 2026-01-17 13:30:05 +00:00
fix: applying logic to BETWEEN as well as IN
This commit is contained in:
2
all.sas
2
all.sas
@@ -5973,6 +5973,7 @@ data &outds;
|
|||||||
output;
|
output;
|
||||||
end;
|
end;
|
||||||
else raw_value1=substr(raw_value,2,max(length(raw_value)-2,0));
|
else raw_value1=substr(raw_value,2,max(length(raw_value)-2,0));
|
||||||
|
end;
|
||||||
/* we now have a comma seperated list of values */
|
/* we now have a comma seperated list of values */
|
||||||
if vtype='N' then do i=1 to countc(raw_value1, ',')+1;
|
if vtype='N' then do i=1 to countc(raw_value1, ',')+1;
|
||||||
tmp=scan(raw_value1,i,',');
|
tmp=scan(raw_value1,i,',');
|
||||||
@@ -5986,7 +5987,6 @@ data &outds;
|
|||||||
return;
|
return;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
|
||||||
else raw_value1=raw_value;
|
else raw_value1=raw_value;
|
||||||
|
|
||||||
/* remove nested literals eg '' */
|
/* remove nested literals eg '' */
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ data &outds;
|
|||||||
output;
|
output;
|
||||||
end;
|
end;
|
||||||
else raw_value1=substr(raw_value,2,max(length(raw_value)-2,0));
|
else raw_value1=substr(raw_value,2,max(length(raw_value)-2,0));
|
||||||
|
end;
|
||||||
/* we now have a comma seperated list of values */
|
/* we now have a comma seperated list of values */
|
||||||
if vtype='N' then do i=1 to countc(raw_value1, ',')+1;
|
if vtype='N' then do i=1 to countc(raw_value1, ',')+1;
|
||||||
tmp=scan(raw_value1,i,',');
|
tmp=scan(raw_value1,i,',');
|
||||||
@@ -195,7 +196,6 @@ data &outds;
|
|||||||
return;
|
return;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
|
||||||
else raw_value1=raw_value;
|
else raw_value1=raw_value;
|
||||||
|
|
||||||
/* remove nested literals eg '' */
|
/* remove nested literals eg '' */
|
||||||
|
|||||||
Reference in New Issue
Block a user