1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-11 06:24:35 +00:00

fix: removing nonprintables from cards data. Closes #80

This commit is contained in:
Allan Bowe
2021-09-27 20:12:48 +01:00
parent 74790ec80e
commit 9b32e6e3f2
2 changed files with 12 additions and 2 deletions

View File

@@ -3474,7 +3474,12 @@ data datalines_2;
*/
else if upcase(format)=:'$HEX' then
dataline=cats('put(trim(',name,'),',format,')');
else dataline=name;
/**
* There is no easy way to store line breaks in a cards file.
* To discuss this, use: https://github.com/sasjs/core/issues/80
* Removing all nonprintables with kw (keep writeable)
*/
else dataline=cats('compress(',name,', ,"kw")');
run;
proc sql noprint;

View File

@@ -161,7 +161,12 @@ data datalines_2;
*/
else if upcase(format)=:'$HEX' then
dataline=cats('put(trim(',name,'),',format,')');
else dataline=name;
/**
* There is no easy way to store line breaks in a cards file.
* To discuss this, use: https://github.com/sasjs/core/issues/80
* Removing all nonprintables with kw (keep writeable)
*/
else dataline=cats('compress(',name,', ,"kw")');
run;
proc sql noprint;