boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - SAS快捷键问题
相关主题
SAS code 问题
SAS code help
SAS 编程问题 (有包子)
问个sql问题
请教如何用SAS处理这个RANDOM SAMPLING的问题
问一个有关SAS MACRO 和PROC PMENU的问题
SAS question
请问SAS大牛一个关于proc sql join
SAS 问题
求助,SAS ADV 130 中94
相关话题的讨论汇总
话题: sas话题: submit话题: selection话题: data话题: options
进入Statistics版参与讨论
1 (共1页)
z****e
发帖数: 2024
1
1. how to submit selection code in the enhanced editor without using :right click->submit selection.
ie, in R, ctrl+R can submit code line by line. is there anything similar in SAS?
2. how to remove all the data saved in the work libname without using: the explorer->library->work->delete all manually.
ie. in matlab, clear all; command can do this.
3. how remove all the options?
Thanks.
o****o
发帖数: 8077
2
1. F8 WITH SELECTED CODE
2. proc datasets library=work nolist;
delete _all_/mtype=data;
quit;
3. what do u mean by remove options? there are always default options (
system, data step...)

right click->submit selection.
in SAS?
explorer->library->work->delete all manually.

【在 z****e 的大作中提到】
: 1. how to submit selection code in the enhanced editor without using :right click->submit selection.
: ie, in R, ctrl+R can submit code line by line. is there anything similar in SAS?
: 2. how to remove all the data saved in the work libname without using: the explorer->library->work->delete all manually.
: ie. in matlab, clear all; command can do this.
: 3. how remove all the options?
: Thanks.

z****e
发帖数: 2024
3
thanks a lot.
3, i mean to restore to default options.

【在 o****o 的大作中提到】
: 1. F8 WITH SELECTED CODE
: 2. proc datasets library=work nolist;
: delete _all_/mtype=data;
: quit;
: 3. what do u mean by remove options? there are always default options (
: system, data step...)
:
: right click->submit selection.
: in SAS?
: explorer->library->work->delete all manually.

o****o
发帖数: 8077
4
PROC OPTLOAD without options

【在 z****e 的大作中提到】
: thanks a lot.
: 3, i mean to restore to default options.

z****e
发帖数: 2024
5
赞!
another question,
data tmp2;
input day mon year;
date=mdy(mon, day, year);
output;
datalines;
25 12 2005
1 1 1960
21 10 1946
;
how to keep only the date variable in the output dataset?

【在 o****o 的大作中提到】
: PROC OPTLOAD without options
s**c
发帖数: 1247
6
F3 can do (1)
SAS is not like R, u have to submit a whole piece of program
OW, no results at all

right click->submit selection.
in SAS?
explorer->library->work->delete all manually.

【在 z****e 的大作中提到】
: 1. how to submit selection code in the enhanced editor without using :right click->submit selection.
: ie, in R, ctrl+R can submit code line by line. is there anything similar in SAS?
: 2. how to remove all the data saved in the work libname without using: the explorer->library->work->delete all manually.
: ie. in matlab, clear all; command can do this.
: 3. how remove all the options?
: Thanks.

o****o
发帖数: 8077
7
you really need to learn some basic SAS
use keep statement in either data set option or program body

【在 z****e 的大作中提到】
: 赞!
: another question,
: data tmp2;
: input day mon year;
: date=mdy(mon, day, year);
: output;
: datalines;
: 25 12 2005
: 1 1 1960
: 21 10 1946

f*******e
发帖数: 51
8
data tmp2 (keep=date);
input day mon year;
date=mdy(mon, day, year);
output;
datalines;
25 12 2005
1 1 1960
21 10 1946
;
run;

as desired (in data step, only keep log(n), but not n)?

【在 z****e 的大作中提到】
: 赞!
: another question,
: data tmp2;
: input day mon year;
: date=mdy(mon, day, year);
: output;
: datalines;
: 25 12 2005
: 1 1 1960
: 21 10 1946

z****e
发帖数: 2024
9
Thanks a lot.
Your way is the "keep = data, set option".
I also found that "keep statement" also works.
just before "output;", place "keep date;".
A point good to know, very helpful.

【在 f*******e 的大作中提到】
: data tmp2 (keep=date);
: input day mon year;
: date=mdy(mon, day, year);
: output;
: datalines;
: 25 12 2005
: 1 1 1960
: 21 10 1946
: ;
: run;

z****e
发帖数: 2024
10
yes. you are right.

【在 o****o 的大作中提到】
: you really need to learn some basic SAS
: use keep statement in either data set option or program body

d*******1
发帖数: 854
11

are you serious?

【在 s**c 的大作中提到】
: F3 can do (1)
: SAS is not like R, u have to submit a whole piece of program
: OW, no results at all
:
: right click->submit selection.
: in SAS?
: explorer->library->work->delete all manually.

s**c
发帖数: 1247
12
yeah
I mean the whole proc-run

【在 d*******1 的大作中提到】
:
: are you serious?

j*****0
发帖数: 10
13
Not necessarily. Highlight the part codes you want to run, and then F3.

【在 s**c 的大作中提到】
: F3 can do (1)
: SAS is not like R, u have to submit a whole piece of program
: OW, no results at all
:
: right click->submit selection.
: in SAS?
: explorer->library->work->delete all manually.

1 (共1页)
进入Statistics版参与讨论
相关主题
求助,SAS ADV 130 中94
完全不懂SAS,急请教一个问题
SAS Proc SQL count问题
请教一个SAS code
SAS Code 求助,如何把在另一个dataset的id找出来
请教SAS SQL
请教两个关于SAS的问题
请教SAS中libname 的一个问题
April 22/ 2014 SAS BASE PASS
SAS question:Please give me your suggestions!
相关话题的讨论汇总
话题: sas话题: submit话题: selection话题: data话题: options