• Community
    • Home
    • Welcome
      • Getting Started
      • Community Memo
      • All Things Community
      • SAS Customer Recognition Awards (2024)
      • SAS Customer Recognition Awards (2023)
    • SAS Community Library
    • SAS Product Suggestions
    • Upcoming Events
    • SAS Customer Recognition Awards
    • All Recent Topics
  • Learn
    • New SAS User
    • SAS Software for Learning Community
    • Ask the Expert
    • SAS Certification
    • SAS Tips from the Community
    • SAS Training
      • Programming 1 and 2
      • Advanced Programming
      • Course Case Studies and Challenges
      • Trustworthy AI
    • SAS Global Forum Proceedings 2021
    • Tech Report Archive
    • SAS Insights Archive
  • Programming
    • SAS Programming
    • SAS Procedures
    • SAS Enterprise Guide
    • SAS Studio
    • Graphics Programming
    • ODS and Base Reporting
    • SAS Code Examples
    • SAS Web Report Studio
    • Developers
  • Analytics
    • Statistical Procedures
    • SAS Data Science
    • Mathematical Optimization, Discrete-Event Simulation, and OR
    • SAS/IML Software and Matrix Computations
    • SAS Forecasting and Econometrics
    • Streaming Analytics
    • Research and Science from SAS
  • SAS Viya
    • SAS Viya
    • SAS Viya on Microsoft Azure
    • SAS Viya Release Updates
    • Moving to SAS Viya
    • SAS Visual Analytics
    • SAS Visual Analytics Gallery
    • Your Journey to Success
    • SAS Viya Workbench
      • SAS Viya Workbench: Getting Started
      • SAS Viya Workbench Discussion
      • SAS Viya Workbench: Release Updates
  • Administration
    • Administration and Deployment
    • Architecture
    • SAS Hot Fix Announcements
    • SUGA
  • Solutions
    • Microsoft Integration with SAS
    • Decisioning
    • SAS Decision Builder
    • Data Management
    • SAS Data Maker
      • SAS Data Maker: Getting Started
      • SAS Data Maker Discussion
    • Customer Intelligence
      • SAS Customer Intelligence
      • SAS Customer Intelligence 360 Release Notes
      • SAS 360 Match
    • Risk and Fraud
      • SAS Risk Management
      • Fraud, AML and Security Intelligence
      • SAS Risk Release Updates
      • Risk & Finance Analytics
      • Insurance Fraud
      • MRM AI Governance Working Group
      • SAS Quant Community
    • SAS Health
      • SAS Health and Life Sciences
      • SAS Life Science Analytics Framework
  • Hubs
    • Regional Hubs
      • SAS User Groups
      • SAS Community Nordic
      • AML Nordic User Group
      • SAS Japan
      • SAS Korea
      • CoDe SAS German
      • SAS Plattform Netzwerk
      • SAS Brazil Community
      • SAS Spanish Community
      • SAS Users Group in Israel
      • 欢迎来到SAS中文社区!
      • Ottawa Area SAS Users' Society
      • Toronto Area SAS Users Group
      • SAS Türkiye Community
    • Special Interest Hubs
      • SAS Hacker's Hub
      • SAS Innovate 2026
      • SAS Analytics Explorers
      • The Curiosity Cup
      • SAS Inner Circle Panel
      • SAS Hackathon Team Profiles (Past)
      • SAS Explore
      • Reporting and Optimization
      • Intern Alumni Network Community
Sign In

Search the Community

Showing results for 
Search instead for 
Did you mean: 
Search Options
  • Subscribe to RSS Feed for this Search
Advanced Hide Advanced
  • Posts
  • Users
  • Places
  • Products
Advanced Search Options
Search Modifiers:
You can apply modifiers to the terms you enter in the search field.
Use quotes to search for an "exact phrase".
Use the plus sign to search for +one +or +more +words.
Use the minus sign to -exclude -certain -words from your search.
Limits search results to topics that have no replies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
64 results
Sorted by:
Best Match
  • Date
  • Views
  • Likes
  • Replies
  • Best Match

SAS Base Date insert into Oracle Date

by Fluorite | Level 6 sorosch in SAS Programming
‎09-25-2016 08:39 AM
‎09-25-2016 08:39 AM
Hello,   i want to insert a SAS Date from a SAS Table into a Oracle Date-column.   I searched already in Google and in this forum - but i get always:   ERROR: Value 7 on t...
Show results in replies (2)
  • ...o pass on the correct type to Oracle (Date), SAS needs to know that the SAS variable of type N...
  • SAS has numeric and character variables. It sounds like you have a char variable.  Oracle w...

Insert Current Date & Time into Oracle record

by Quartz | Level 8 SASAna in SAS Programming
‎12-01-2016 01:34 PM
‎12-01-2016 01:34 PM
I wanted to get the current date & time to insert  in one of the attributes of ORacle Table.   I tried below 2 options & i am getting default date of SAS.   Option 1...
Show results in replies (1)
  • I would try something like this with your preferred date/time format,  %let tday = %s...

Not able to insert sas date value into oracle table

by Obsidian | Level 7 Banu in SAS Programming
‎03-28-2023 03:23 PM
‎03-28-2023 03:23 PM
Hi Team, I tried a lot to insert sas date value into oracle date variable, but always giving ERROR: Oracle execute error: ORA-0140: Cannot insert NULL into oracle table DATE field. Below is m...
Show results in replies (1)
  • ...t print anything reasonable.   Errors about NULL values sounds like perhaps the table in Oracle...

Wrong Date inserting in oracle table from SAS

by Calcite | Level 5 RDS2020 in SAS Procedures
‎07-19-2020 11:32 PM
‎07-19-2020 11:32 PM
Hi All, I am using simple code to insert date field into oracle date field and it is inserting as 01JAN1960. All other fields are inserging fine other than  Date field which is inserting as 0...
Show results in replies (1)
  • ...s that's not behaving like documented here.   You could try the following: INSERT into oracle...

Oracle Insert sysdate

by Fluorite | Level 6 sorosch in SAS Programming
‎08-02-2017 11:03 AM
‎08-02-2017 11:03 AM
...INTO oraCon.TABLENAME ( LAST_UPDATE ) VALUES ( '01JAN2016:00:00:00'DT ); disconnect from oracle; quit;       But how can i insert sysdate/datetime (the a...
Show results in replies (2)
  • ...onnect to ORACLE as oracle ( user=XX password=XX path=XX ); INSERT INTO oraCon.TABLENAME (L...
  • Maybe (can't check it): VALUES ( "%sysfunc(date(),date9.):%sysfunc(time(),tod8.)"dt );

Date insert to Oracle table Issue Base SAS Date

by Obsidian | Level 7 Jyuen204 in SAS Procedures
‎10-16-2020 11:40 AM
‎10-16-2020 11:40 AM
Sorry guys, having an issue. I am inserting records into an Oracle database Table and one of the fields is todays date which I am writing as a datestamp for historical reference. proc sql; insert...
Show results in replies (1)
  • I think you need a datetime, not a date? Try replacing today with datetime() and not applying a f...

Write Date from SAS to Oracle

by Rhodochrosite | Level 12 DavidPhillips2 in SAS Programming
‎03-17-2020 04:29 PM
‎03-17-2020 04:29 PM
For some reason when I try to write this SAS table to and Oracle table of time date the date in the oracle table shows 1960.  I know I'm missing something simple.   proc sql; create t...
Show results in replies (2)
  • Yes. You are missing the fact that Oracle does not actual have a DATE data type.  It only h...
  • Oracle stores datetimes, not dates. SAS should translate for you, but seems not to here. T...

PROC SQL - Insert date on Oracle table

by Calcite | Level 5 coloric in SAS Procedures
‎10-31-2012 12:57 PM
‎10-31-2012 12:57 PM
Hi! Please, how to insert current date via INSERT in a oracle table by SAS libname? This column is a date (data type, but have hours too) on oracle, and date9. (format and informat) on SAS. Im t...

PROC SQL Oracle pass through - passing null values in date fields

by Quartz | Level 8 SASAna in SAS Programming
‎04-23-2018 11:46 AM
‎04-23-2018 11:46 AM
...apping them to insert into another oracle table.   Proc Sql;  Connect To Oracle(User=&Myid Orapw=&Mypwd Path="&Mydb");       Create Table Test  as S...
Show results in replies (1)
  • ...nd Oracle tables.   If your trying to insert into a oracle table with one column all null v...

today() to insert into date format of Oracle table

by Quartz | Level 8 SASAna in SAS Programming
‎12-16-2016 08:13 PM
‎12-16-2016 08:13 PM
Hi SAS users,   A filed "ENTRY_DT" is built as date format in Oracle Database, i am trying to load current date in YYYY-MM-DD format .   I tried to convert it into character with put f...
  • « Previous
    • 1
    • 2
    • 3
  • Next »
Powered by Khoros