@ger15xxhcker wrote:
The space is inside the variable because you specified the format when creating the variable (put(site,2.)). This specifies that the variable should have a length of two, and the space will be included in this length. To remove the space, you can reduce the format to 1. instead of 2.
Sorry, but this is completely wrong. The blanks are part of dept and the html-output collapses the blanks automatically. Here is the log-output of an extended version of the program displaying all blanks:
81 data temp2;
82 set sasuser.temp (keep=dept site);
83 dept = translate(dept, '#', ' ');
84 Assignment = dept||put(site,2.);
85 put Assignment=;
86 run;
Assignment=DP###26
Assignment=PURH#57
Assignment=PERS#34
Assignment=BK###57
Assignment=DP###95
Assignment=BK###44
Assignment=DP###59
Assignment=PUB##38
Assignment=DP###44
Assignment=DP###90
... View more