
10-09-2023
mohamed_zaki
Barite | Level 11
Member since
08-11-2014
- 490 Posts
- 85 Likes Given
- 60 Solutions
- 194 Likes Received
This widget could not be displayed.
-
Latest posts by mohamed_zaki
Subject Views Posted 1717 08-26-2016 08:39 PM 1953 08-26-2016 08:36 PM 2403 08-25-2016 06:35 PM 1387 08-24-2016 11:57 AM 4831 08-07-2016 07:20 PM 1603 04-07-2016 08:52 PM 2458 03-20-2016 02:32 AM 5656 03-01-2016 06:19 AM 3009 02-29-2016 09:13 AM 7118 02-28-2016 05:38 PM -
Activity Feed for mohamed_zaki
- Got a Like for Re: Multiple conditions in one if statement. 11-24-2024 10:53 AM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 10-28-2023 05:00 PM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 03-17-2022 03:19 PM
- Got a Like for Re: Is there a procedure to check whether missing data are missing completely at random or missing at random?. 09-21-2021 06:33 PM
- Got a Like for Re: Multiple conditions in one if statement. 11-28-2020 01:39 AM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 08-20-2020 01:15 PM
- Got a Like for Re: functions. 10-29-2019 08:18 AM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 08-28-2019 11:06 PM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 05-14-2019 05:44 AM
- Got a Like for Re: Filling gap in a panel data. 04-28-2019 07:48 AM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 03-01-2019 02:11 PM
- Got a Like for Re: Sum Statement. 02-14-2019 04:57 PM
- Got a Like for Re: PROC Export: Replacing sheet error. 11-22-2018 09:04 AM
- Got a Like for Re: proc glm: class vs. absorb. 06-18-2018 09:57 PM
- Got a Like for Re: SAS Miner: export train cluster results. 06-18-2018 03:02 AM
- Got a Like for Re: proc glm: class vs. absorb. 10-29-2017 10:35 PM
- Got a Like for Re: Grand total in proc report not working. 10-16-2017 04:54 PM
- Got a Like for Re: You can only BREAK on GROUPing or ORDERing variables when doing PROC REPORT. 09-18-2017 11:42 AM
- Got a Like for Re: Find Week within a Month. 09-13-2017 09:03 AM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 05-28-2017 11:56 AM
-
Posts I Liked
Subject Likes Author Latest Post 3 2 1 3 3 -
My Liked Posts
Subject Likes Posted 1 01-22-2016 05:32 AM 1 09-16-2014 10:27 AM 1 02-25-2016 01:09 PM 1 12-12-2015 09:41 AM 1 12-13-2015 07:32 PM
08-26-2016
08:36 PM
1 Like
data want;
set have;
if Time eq 0 then charvar ='PRE-DOSE';
else charvar = STRIP(PUT(TIME, best32.));
run;
... View more
08-25-2016
06:35 PM
1 Like
data a;
input ID;
datalines;
1
2
3
4
5
;
data b;
input ID;
datalines;
2
4
5
9
;
proc sql;
create table want as
select ID
from b
where ID not in (select ID from a);
quit;
... View more
08-24-2016
11:57 AM
@rishabhmehra13 wrote:
.... when("Hyundai") country=""SouthKorea";
....
... View more
08-07-2016
07:20 PM
1 Like
data want;
set have;
by Configuration Month;
Difference= dif(Retail_price);
if first.Configuration then Difference=.;
run;
... View more
04-07-2016
08:52 PM
1 Like
data have;
input id date mmddyy10. ;
cards;
1 01/01/2016
1 01/14/2016
1 01/22/2016
2 02/16/2016
2 04/03/2016
;
run;
proc sort data=have;
by id date;
run;
data want ;
set have;
by id;
retain week;
if first.id then week=intck('week',intnx('month',date,0),date)+1;
run;
... View more
03-20-2016
02:32 AM
2 Likes
You have extra semicolons in your PROC IMPORT statments.
OUT, DBMS, REPLACE are all parts of PROC IMPORT, and must end up by only one semicolon.
Try this:
PROC IMPORT DATAFILE="/home/teleous0/Cody/drugtest.xls"
OUT=mtl.drugtest
DBMS=XLS;
GETNAMES=YES;
RUN;
Also GETNAMES valid values only is YES or NO. Which specifies whether the IMPORT procedure generate SAS variable names from the data values in the first record in the input file or not.
... View more
03-01-2016
06:19 AM
Your code have nothing to do with the date variable. You forgot the semicolon in the third if statement.
... View more
02-29-2016
09:13 AM
What error you get? Post the error text...
... View more
02-28-2016
05:38 PM
1 Like
This generally happen because you have input variable that make "perfect classification". So if you removed this variable you will get rid of this warnning. You can run PROC FREQ for each input variable and you will find this variable easily.
... View more
02-27-2016
07:16 PM
You do not have variable called SCORE in your data set
You mean
MODEL count = TRAIT TEST;
... View more
02-27-2016
05:43 PM
1 Like
use index function for that
if index(LOWCASE(model),'hybrid') then ....
... View more
02-25-2016
02:54 PM
First, MAXDEC is not System option. System options are instructions that affect your SAS session. You can check them here: SAS System Options
MAXDEC is one of PROC MEANS statment options. You can find detials about it in PROC MEANS documentaions here
And let suppose you went through the doc and you did not understand, Why do not you run this option in simple SAS code and test it by yourself.
For example run the following steps and change the value of maxdec and know by yourself:
data cake;
input LastName $ 1-12 Age 13-14 PresentScore 16-17
TasteScore 19-20 Flavor $ 23-32 Layers 34 ;
datalines;
Orlando 27 93 80 Vanilla 1
Ramey 32 84 72 Rum 2
Goldston 46 68 75 Vanilla 1
;
proc means data=cake n mean max min range std fw=8 maxdec=2;
var PresentScore TasteScore;
run;
You are welcome to ask anytime, but do more effort to find the answer by yourself or at least in writing your question.
All the best!!!
... View more
02-25-2016
01:10 PM
1 Like
No, not in SAS. Only if it come before the set statment in the order in your data step.
... View more
02-25-2016
01:09 PM
1 Like
This is called Sum Statment in SAS. And it is equivalent to using the SUM function and the RETAIN statement.
As you noticed in your data you have missing values so to do the cumulative summation you need the SUM function and Retain or as shortcut you can use the SUM statment.
... View more