how to excecute bunch of sql statements

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
ann
Participant
Posts: 19
Joined: Thu Jan 06, 2005 12:02 pm

how to excecute bunch of sql statements

Post by ann »

Hi all,
I have a file.sql text file with bunch of sql statements. Which are insert statements. How can i excecute this in batch job or in a regular job?
I need to create a job which excecutes this and need to schedule it.

thanks in advance,
ann.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why not convert the inserted data into a sequential file and then use a 'regular' job to process it? Why the 'need' to do it this way?
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Or read each line from the file and pass as parameter to a job which inserts into the table or use comand activity to execute comand line insert from the job sequence which inturn can be scheduled.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Can't you execute those insert sql statements from the before or after tab of the Target Stage? Just a thought
Kris

Where's the "Any" key?-Homer Simpson
Post Reply