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.
|