From Hash file to loading Table

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
parsi_cnu
Charter Member
Charter Member
Posts: 43
Joined: Thu Dec 04, 2003 4:26 pm

From Hash file to loading Table

Post by parsi_cnu »

Hi,
i am storing the snapshot_date in the Hash file and if matches i am getting the snapshot_date but i am getting error ORA-01841: (full) year must be between -4713 and +9999, and not be 0. The same hash file working good in another job but i am getting error in one job. So what should i do shall i had to convert into internal date format and then convert into the orginal oracle date and pass to the target.

Thanks


sri
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

More information needed. :?

* What format is the date stored in in the hashed file?
* What format is it in when you send it to Oracle?
* How is it defined in your target - DATE? TIMESTAMP?
* What datatype did you define it as in your job - Date? Timestamp? Varchar? What size?
* What kind of transformations are you doing on it now? Anything?

Not saying this is an all inclusive set of questions, but just trying to give you an idea that more information is needed to do anything other than guess at what you are doing and what an appropriate solution would be. And I'd rather see too much information rather than too little.
-craig

"You can never have too many knives" -- Logan Nine Fingers
parsi_cnu
Charter Member
Charter Member
Posts: 43
Joined: Thu Dec 04, 2003 4:26 pm

additional information about the question

Post by parsi_cnu »

The date in the hash file is stored in the Timestamp format and i am getting the timestamp format as it is and storing in the oracle table in timestamp format


Thanks
sri
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So, is the target an Oracle DATE field? If you treat this as a Timestamp in the job and make sure it looks like YYYY-MM-DD HH24:MI:SS when it gets to Oracle, you should be fine. This also assumes you are using an OCI stage to write to the database, that or the DRS stage set to Oracle.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Write the result in a seq file. That will give you an idea of what is being passed into the target.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You could use the Debugger if they hadn't broken it. :cry:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Are you saying it's broken, Ray? In what version?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

7.1, maybe 7.0.x, and still in 7.5x2. You get to the first breakpoint then the job aborts with the message "Debugger client disconnected".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ok. I get those at times using 7.0.1, typically when I've use a connection for multiple things before trying to debug a job. Usually can be 'worked around' by opening a new Designer session and doing the debugging of the job in isolation.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why should you have to?!! I still claim it's broken.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply