mirror of
https://github.com/sasjs/core.git
synced 2026-01-10 10:50:04 +00:00
fix: adding trim to avoid converting trailing blanks
This commit is contained in:
3
all.sas
3
all.sas
@@ -3472,7 +3472,8 @@ data datalines_2;
|
|||||||
* binary data must be converted, to store in text format. It is identified
|
* binary data must be converted, to store in text format. It is identified
|
||||||
* by the presence of the $HEX keyword in the format.
|
* 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;
|
else dataline=name;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
|
|||||||
@@ -159,7 +159,8 @@ data datalines_2;
|
|||||||
* binary data must be converted, to store in text format. It is identified
|
* binary data must be converted, to store in text format. It is identified
|
||||||
* by the presence of the $HEX keyword in the format.
|
* 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;
|
else dataline=name;
|
||||||
run;
|
run;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user