Search the Community
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
1,251 results
Sorted by:
04-30-2024
07:04 AM
I am attempting to output an excel (xlsx) file using ods excel from a proc output. My variables are in date9. format in the SAS data set, but when they output to excel they are in a text format.&n...
01-26-2023
06:51 AM
Hello,
I have a database in Excel with a date variable of modalities 01/21/2022, 03/02/2019, 06/01/2010, etc. When I import it into SAS, the date variable contains the modalities 44949. I...
Show results in replies (5)
-
A quick search of the forum for "Excel dates" turns up plenty of correct answers https://c...
-
...f things to note: Excel stores dates as a number e.g. 1 = 01 Jan 1990, 2 = 02 Jan 1990, ... Excel...
-
Excel does not work with dates prior to 1900 because it perpetuates a bug (actually, a trick to s...
-
...an deal with special values which cause the IMPORT problem (reading dates as character). &n...
-
if you already have a numeric value use YOUR_DTC=put(XLSX_COLUMN_NAME-21916,e8601da.); Diffic...
03-01-2019
10:44 AM
Hello, I know there are a lot of posts about formatting dates, but I have not been able to find one that works for my problem. I am trying to import data where the dates are f...
10-12-2023
04:35 PM
...ut it generated many uninterpretable data. Please see the second screenshot. How can I read this column in to capture all the values as dates. Thanks again
datestudy=input(date...
03-31-2016
09:40 AM
Good morning my friends:
I have studied lots of tutorials talking about how to import correctly EXCEL files into SAS UNIERSITY EDITION, unfortunely all the trials were unsuccesfull, here i...
10-17-2021
04:26 PM
Hi! When I import this excel file, the dates come in as a random set of numbers that aren't in date format or correct. Below is the import code I'm using. Can someone please correct me to get them t...
07-09-2024
04:57 PM
Hello,
I'm have a problem with no highlighting in my results. I get results as expected (and yes, there is a 31Aug2022 in my dates) but nothing highlights. My code is as follows:
%let a...
02-16-2022
06:53 AM
...and will require importing. One of my columns in Excel is a "date" column, written as YYYYMM (so, October 2015 would be 201510). This is stored in Excel under General format and not as a...
09-30-2022
01:05 PM
Hi, I originally received 2 Excel sheets to merge together for this project. After I merged them, I successfully corrected the dates using this code: DATA SubQ.dataclean1; S...
Show results in replies (5)
-
...un;quit; Because the Excel dates get read as character the SAS columns contain a string of digits t...
-
...4-2022 Kelly edit dates only.xlsx" DBMS=excel REPLACE ; dbdsopts= "dbtype=( postop_XR_date='date...
-
Thanks! Just converting the file to a CSV file worked; the dates just imported how I wanted them t...
-
...ibname xx xlsx "C:\downloads\Master Compiled Spreadsheet 09-14-2022 Kelly edit dates only.xlsx"; NOTE: L...
-
...ostop_XR_date, mmddyy10.); /* Change dates from character to date values */ 74 format date_varXR1 m...
08-09-2022
05:46 PM
...1JUN2022; %let ToDate=31JUL2022; I reference it all throughout the program with no issues. When it comes time to produce the excel output though it only comes out in sas date format, I need it in m...