由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - help on a vary strange result: length statement
相关主题
Ask 2 simple SAS questions,thankshelp!! help!! SAS help!! Urgent!!
怎样用R定位变量的位置[急求助] survival analysis (SAS)
help please: automatic run SAS in a batch mode.thanks关于stepwise programming
A SAS question请问sas中一个变量的内容被两个左斜杠(/)分成了三部分
弱问一个SAS里面求adjusted means的问题怎样用R除掉DUPLICATED RECORD
SAS help[合集] └ Re: 关于stepwise programming
在SAS里如何用array或者macro改进这段程序?求指教!请问SAS中如何通过组内一个变量的值控制整组变量
请教一个简单SAS问题再请教一个PROC SQL JOIN的问题。。。。
相关话题的讨论汇总
话题: sas话题: length话题: distractor话题: var3
进入Statistics版参与讨论
1 (共1页)
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
5
options linesize=108;
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;
1 (共1页)
进入Statistics版参与讨论
相关主题
再请教一个PROC SQL JOIN的问题。。。。弱问一个SAS里面求adjusted means的问题
一个SAS问题(transpose?)SAS help
SAS file question,thanks very mcuh在SAS里如何用array或者macro改进这段程序?求指教!
怎样储存我想要的proc means 的结果?请教一个简单SAS问题
Ask 2 simple SAS questions,thankshelp!! help!! SAS help!! Urgent!!
怎样用R定位变量的位置[急求助] survival analysis (SAS)
help please: automatic run SAS in a batch mode.thanks关于stepwise programming
A SAS question请问sas中一个变量的内容被两个左斜杠(/)分成了三部分
相关话题的讨论汇总
话题: sas话题: length话题: distractor话题: var3