MSolar,
There are a few issues that I detect with your posting.
1) Oracle does not support packed decimal (also known as COMP-3) data-type conversions. Despite that deficiency, we can build a user-defined function to translate to/from COMP-3.
2) I have a question re: the data you are transmitting:
MSolar said:
jdat pic 9(7) comp-3 and is formatted as 'yyyydd'
If you have no month, and only two digits for days, how do you store enough days for the year? (Or did you simply forget a third digit for days?)
Since use mention SQL*Loader, I infer that your incoming data are in flat files. If my inferrence is correct, then I suggest using Oracle's EXTERNAL (i.e., flat-file) table support and we then deal with your COMP-3 data conversion using the user-defined COMP-3 conversion function I mention, above.
Let me know your thoughts,
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services:
www.dasages.com]