overwritting all .dat,.ctl,.bad,.log file

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
adams06
Participant
Posts: 92
Joined: Sun Mar 12, 2006 3:00 pm

overwritting all .dat,.ctl,.bad,.log file

Post by adams06 »

I need to run a server job with sqlldr twice with different source file.

When job1 runs it create .dat,.ctl,.bad,.log file

When job2 run it is overwritting all .dat,.ctl,.bad,.log file

How to handle this situation?


I can simply rename the file names., But i don't want to do that.

Any help to handle it
prasannakumarkk
Participant
Posts: 117
Joined: Wed Feb 06, 2013 9:24 am
Location: Chennai,TN, India

Post by prasannakumarkk »

in the sqlldr command you have the option of specifying where the dat, log file should be written with file name.

While specifying the file name in the option append the value of macro DSJOBSTARTTIMESTAMP. So each time new file will be created
Thanks,
Prasanna
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What stage are you using for this - the OraBulk stage? So that you are manually issuing the sqlldr command? Since the files cannot be appended to, you'll either need to rename them after job or perhaps pass in a job parameter to use when naming the files so they are unique, either to the file or to each run.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply