of course you could compress after converting individually to char type.
converted = compress( put( yVar1, best10.), '.' );
or
converted = compress( vvalue(vYar1 ), '.' ) ;[pre]
175 data ;
176 retain yVar1 123.45 yVar2 456.789 ;
177 converted1 = compress( put( yVar1, best10.), '.' );
178 converted2 = compress( vvalue(yVar2 ), '.' ) ;
179 put (_all_)(=/);
180 run;
yVar1=123.45
yVar2=456.789
converted1=12345
converted2=456789
NOTE: The data set WORK.DATA3 has 1 observations and 4 variables.
NOTE: DATA statement used (Total process time):[/pre]
Trying to avoid that is why I suggested compressing periods out of the line just before you release it. Here is a saslog to demonstrate[pre]287 data test_data ;
288 input yVar1 - yVar24 ;
289 format yVar: best18. ;
290 list;cards ;
RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0
291 12 123.4 2345.678 765.2 45678.1234 456 54678.456 1.45678 .3456 2345 12345 9843 12345678 5432.54 3456
101 7889045 .2345 23456789.6789 1234567890.32 23456.1234 123.3456 .345 3456.2345 .4567 1234567890.32 23
201 456.1234 123.3456 .345 3456.2345 .4567
NOTE: The data set WORK.TEST_DATA has 1 observations and 24 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
292 ;
293
294 data _null_ ;
295 file 'no_dots.txt' dsd dlm='|' lrecl=10000 ; * pipe delimited output ;
296 set ; * load data ;
297 put (yVar1-yVar20)(:) @ ; * prepare and hold output line ;
298 _file_ = compress( _file_, '.' ) ; * remove dots from line ;
299 put ; * release line ;
300 run ;
NOTE: The file 'no_dots.txt' is:
File Name=C:\Applications\UK.Liquidity2\no_dots.txt,
RECFM=V,LRECL=10000
NOTE: 1 record was written to the file 'no_dots.txt'.
The minimum record length was 150.
The maximum record length was 150.
NOTE: There were 1 observations read from the data set WORK.TEST_DATA.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
301 data _null_ ;
302 infile 'no_dots.txt' lrecl=10000 ;
303 input ;
304 list ;
305 run ;
NOTE: The infile 'no_dots.txt' is:
File Name=C:\Applications\UK.Liquidity2\no_dots.txt,
RECFM=V,LRECL=10000
RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0
1 12|1234|2345678|7652|456781234|456|54678456|145678|03456|2345|12345|9843|12345678|543254|34567889045
101 |02345|234567896789|123456789032|234561234|1233456 150
NOTE: 1 record was read from the infile 'no_dots.txt'.
The minimum record length was 150.
The maximum record length was 150.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds[/pre]
I applied bold for the step which outputs the data and removes the dots