04-24-2021
nmlynar13
Calcite | Level 5
Member since
01-29-2021
- 14 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by nmlynar13
Subject Views Posted 1273 04-22-2021 11:21 PM 1351 04-22-2021 09:50 PM 849 03-19-2021 02:36 PM 859 03-19-2021 02:29 PM 872 03-19-2021 02:17 PM 910 03-19-2021 01:22 PM 2667 02-26-2021 12:14 PM 2807 02-25-2021 11:25 PM 807 02-19-2021 01:40 PM 826 02-19-2021 01:33 PM -
Activity Feed for nmlynar13
- Posted Re: Merging error on New SAS User. 04-22-2021 11:21 PM
- Posted Merging error on New SAS User. 04-22-2021 09:50 PM
- Posted Re: Date change on New SAS User. 03-19-2021 02:36 PM
- Posted Re: Date change on New SAS User. 03-19-2021 02:29 PM
- Posted Re: Date change on New SAS User. 03-19-2021 02:17 PM
- Posted Date change on New SAS User. 03-19-2021 01:22 PM
- Posted Re: Slope and Intercept on New SAS User. 02-26-2021 12:14 PM
- Posted Slope and Intercept on New SAS User. 02-25-2021 11:25 PM
- Posted Re: Date formatting on New SAS User. 02-19-2021 01:40 PM
- Posted Date formatting on New SAS User. 02-19-2021 01:33 PM
- Posted Re: ERROR: File WORK.IMPORT.DATA does not exist. on New SAS User. 01-29-2021 12:32 PM
- Posted Re: ERROR: File WORK.IMPORT.DATA does not exist. on New SAS User. 01-29-2021 12:28 PM
- Posted Re: ERROR: File WORK.IMPORT.DATA does not exist. on New SAS User. 01-29-2021 12:16 PM
- Posted ERROR: File WORK.IMPORT.DATA does not exist. on New SAS User. 01-29-2021 12:05 PM
04-22-2021
09:50 PM
I am trying to merge a few datasets I have. I get the following error: ERROR: Variable year1 has been defined as both character and numeric. I understand what it means and how it works, however, I am wondering if there is a simple line to convert all observations in the data to numeric (or character for that matter) at once.
... View more
03-19-2021
02:36 PM
Update: Once I removed the 3 typed in dates it worked for my dataset. Thank you very much for the help!
... View more
03-19-2021
02:29 PM
Hi Amir, Yes that did output the year when I removed the white space. The only thing is that it output just the 3 dates typed in (19MAR2020, 19MAR2021, 19MAR2022). Is there a way to have to read the dates in the column "announcement_dates" to produce the new column of those years? Thank you, Nick
... View more
03-19-2021
02:17 PM
Hi Amir, Thank you for the response, this code does run without errors, however it deletes all data observations and produced just two columns (original date and new date) without any data in it. data easy;
format announcement_date date9.;
input announcement_date date9.;
datalines;
19mar2020
19mar2021
19mar2022
;
data easy2;
set easy;
format date2 year.;
date2 = announcement_date;
run; I used the same code you stated with my dataset names and column names.
... View more
03-19-2021
01:22 PM
I have a column full of dates in the following format "04JAN2010" and would like to have it reformatted to just so the year ("2010"). I saw on a previous post about using the length function, however I got an error because its a "numeric variable"
... View more
02-26-2021
12:14 PM
Thank you for the help and detailed explanation. The ODS Output worked perfectly and I appreciate the longer detailed explanation for my own knowledge as well!
... View more
02-25-2021
11:25 PM
This may be a simple answer but I'm not quite sure how to do it. I am running proc reg on my data set using by variable called "Deal_id" there are about 640 deal_id points and 200 points for each deal id. I've been using proc reg and running it no problem to find the different slopes and intercepts using the code below: proc reg data =temp1; model ret = mret; by deal_id; run; What I'm trying to do after to have a table created that will show deal_id then each respect slope and intercept and standard error for the 640 cases from the regression run. I can't figure out how to pull out these three variables into a new table. Maybe there is another PROC that makes this simpler?
... View more
02-19-2021
01:33 PM
I have a sas file with 6210 rows with a column "date" formated as mm/dd/yyy (06/30/2002 for example) and I would like to convert it to a string that would read the date as yyyymmdd (20020630 for the date above).
... View more
01-29-2021
12:32 PM
I'm not entirely sure how to create an import. I am entirely new to coding all together, not just SAS. This code was given to me through a professor with step by step instructions on how to reproduce what he had create. Intended to show us the basics of SAS, however, I continually get this error message and am unsure what steps to take. Unfortunately when I reached out to him for help, he did not answer.
... View more
01-29-2021
12:28 PM
Yes exactly. The excel file "week1and2" has about 36 columns for 640 rows. This produced 2 columns and 0 rows in SAS.
... View more
01-29-2021
12:16 PM
Thank you for the response. This time it ran successfully with no errors, however, the majority of the data from the excel did not carry over.
... View more
01-29-2021
12:05 PM
I have been trying to run the following code to import an excel data set. libname fin617 '/folders/myshortcuts/fin617'; data fin617.week1and2; set import; run; I return the following log with this error and warnings: 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 72 73 libname fin617 '/folders/myshortcuts/fin617'; NOTE: Libref FIN617 was successfully assigned as follows: Engine: V9 Physical Name: /folders/myshortcuts/fin617 74 75 data fin617.week1and2; 76 set import; ERROR: File WORK.IMPORT.DATA does not exist. 77 run; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set FIN617.WEEK1AND2 may be incomplete. When this step was stopped there were 0 observations and 0 variables. WARNING: Data set FIN617.WEEK1AND2 was not replaced because this step was stopped. NOTE: DATA statement used (Total process time): real time 0.09 seconds cpu time 0.02 seconds 78 79 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 91 I am not sure of how to fix this or even what this error means. I have tried restarting the SAS program, my computer, and double checking the file name.
... View more