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

fix: adding trim to avoid converting trailing blanks

This commit is contained in:
Allan Bowe
2021-09-27 17:46:53 +01:00
parent afd8a754b4
commit 74790ec80e
2 changed files with 4 additions and 2 deletions

View File

@@ -159,7 +159,8 @@ data datalines_2;
* binary data must be converted, to store in text format. It is identified
* by the presence of the $HEX keyword in the format.
*/
else if upcase(format)=:'$HEX' then dataline=cats('put(',name,',',format,')');
else if upcase(format)=:'$HEX' then
dataline=cats('put(trim(',name,'),',format,')');
else dataline=name;
run;