l***o 发帖数: 194 | 1 I try to create a variable: var3 that combined with other 3(char1 char2 and
char4) variables.
since var3 will be too long, so I try to give enough length to it.
let's say 100, but the result var3 still being cut off.
the ideal result
var3 should =
"C:\Program Files\SAS\SAS 9.1\sas.exe" -sysin "C:\DocumentsandSettings\temp\
distractor_analysis.sas"
but it is being cut off.
obviously this length didn't work here. can any expert tell me why?
many many thanks.
mimi
data progs;
var1="distractor_analy |
l***a 发帖数: 12410 | 2 works fine on my machine
data a;
length aaa $100.;
aaa='"C:\Program Files\SAS\SAS 9.1\sas.exe" -sysin "C:\DocumentsandSettings\
temp\distractor_analysis.sas"';
format aaa $100.;
run;
and
temp\
【在 l***o 的大作中提到】 : I try to create a variable: var3 that combined with other 3(char1 char2 and : char4) variables. : since var3 will be too long, so I try to give enough length to it. : let's say 100, but the result var3 still being cut off. : the ideal result : var3 should = : "C:\Program Files\SAS\SAS 9.1\sas.exe" -sysin "C:\DocumentsandSettings\temp\ : distractor_analysis.sas" : but it is being cut off. : obviously this length didn't work here. can any expert tell me why?
|
s******r 发帖数: 1524 | 3 works on my machine too.
DocumentsandSettings\
【在 l***a 的大作中提到】 : works fine on my machine : data a; : length aaa $100.; : aaa='"C:\Program Files\SAS\SAS 9.1\sas.exe" -sysin "C:\DocumentsandSettings\ : temp\distractor_analysis.sas"'; : format aaa $100.; : run; : : and : temp\
|
l***o 发帖数: 194 | 4 hehe, you are like a angel. come to rescure me several times already. :-)
thanks first.
but I copied your code to my machine. it still not working. it got cut off
like this:
"C:\Program Files\SAS\SAS 9.1\sas.exe" -sysin "C:\DocumentsandSettings\temp\
distractor_analysi
here is the log:
1772 data a;
1773
1774 length aaa $100.;
1775
1776 aaa='"C:\Program Files\SAS\SAS 9.1\sas.exe" -sysin "C:\
DocumentsandSettings\
1777 temp\distractor_analysis.sas"';
1778
1779 format aaa $100.;
1780
1781 run
【在 l***a 的大作中提到】 : works fine on my machine : data a; : length aaa $100.; : aaa='"C:\Program Files\SAS\SAS 9.1\sas.exe" -sysin "C:\DocumentsandSettings\ : temp\distractor_analysis.sas"'; : format aaa $100.; : run; : : and : temp\
|
C******t 发帖数: 72 | |
l***o 发帖数: 194 | 6 yes, I just thought about this, too. it worked.
thanks everyone for the help!!!!!!!
Have a nice day!
mimi
【在 C******t 的大作中提到】 : options linesize=108;
|