1
0
mirror of https://github.com/sasjs/core.git synced 2026-07-23 15:35:29 +00:00

fix: use if/else instead of ifn() in hash evaluation

This commit is contained in:
dcbot
2026-07-18 22:29:04 +01:00
parent 004611e480
commit a0146a1f91
+3 -5
View File
@@ -73,12 +73,10 @@
/*
multiply-by-one for consistent cross-system precision.
Ignore null to protect SAS special missing values.
Cannot use IFN() as it evaluates both sides
*/
&normal = ifn(
missing(&nums[&i]),
&nums[&i],
&nums[&i] * 1
);
if missing(&nums[&i]) then &normal = &nums[&i];
else &normal = &nums[&i] * 1;
&numtext = put(&normal, binary64.);
&digest = md5(trim(&numtext));
substr(&pair, 1, 16) = &state;