diff --git a/all.sas b/all.sas index 3c772c4..d382c14 100644 --- a/all.sas +++ b/all.sas @@ -3472,7 +3472,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; diff --git a/base/mp_ds2cards.sas b/base/mp_ds2cards.sas index 6318f43..cdfe72f 100644 --- a/base/mp_ds2cards.sas +++ b/base/mp_ds2cards.sas @@ -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;