SQL file failure

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
ArijitS
Participant
Posts: 24
Joined: Sat Jun 02, 2007 8:58 am
Location: Kolkata

SQL file failure

Post by ArijitS »

If i invoking a SQL file through batch process from after/before job sub routine of DS job how can i trap the error of SQL file if it fails to run with out the help of director.
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: SQL file failure

Post by sachin1 »

hello you can just do the following


ExecDos sqlplus -s oracle/oracle@BIODS.WORLD @#directory#\in\file.sql > #directory#\in\file_log.log

all your error will be caught in file_log.log
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Even better:

ExecDos
sqlplus -s oracle/oracle@BIODS.WORLD @#directory#\in\file.sql > #directory#\in\file_log.log
2>&1
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