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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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