BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hatsumi
Obsidian | Level 7

Hi I have a SAS dataset in a temp work library and I want to move this table to Oracle DB.

Here's the code I run and I got below error message.

 

proc sql;

create table oracle.new_data as

select * from work.orig_data;

quit;

 

ERROR: Error attempting to CREATE a DBMS table. ERROR: ORACLE execute error: ORA-01727: numeric precision specifier is out of range (1 to 38)..

 

After some test runs, I identified that fields with below formats seems to be the issue for above error msg, but I can't figure out how to resolve this problem. Does anyone know how to possibly reformat (?) or do something to move this data in temp work library to Oracle DB?

 

Type

Len

Format

Num

8

F40.2

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Never heard of that format.  Is the data actually length 40?  If it is shorter then simply re-applying the format with a shorter length should fix it, however if it is that length then you would lose display of some of the data, and you would still get the message.

proc datasets library=work;
  modify have format thevar f30.2;
run;
quit;

View solution in original post

3 REPLIES 3
ChrisBrooks
Ammonite | Level 13

This is the most helpful reference I can find to a format I admit I'd never heard of before http://support.sas.com/kb/35/058.html

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Never heard of that format.  Is the data actually length 40?  If it is shorter then simply re-applying the format with a shorter length should fix it, however if it is that length then you would lose display of some of the data, and you would still get the message.

proc datasets library=work;
  modify have format thevar f30.2;
run;
quit;
hatsumi
Obsidian | Level 7

Thank you RW9! This worked for me!! Smiley Very Happy

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2282 views
  • 2 likes
  • 3 in conversation