if using bat file - all db2 commands should be pre-fixed with db2
look in sample directory below sqllib for samples
Best Regards, Guy Przytula
Database Software Consultant
Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
Information Server Datastage Certified http://www.infocura.be
IF %RC_SQL% EQU 4 GOTO DB2SqlError
IF %RC_SQL% EQU 2 GOTO DB2SqlWarning
IF %RC_SQL% EQU 1 GOTO DB2SqlOther
IF %RC_SQL% EQU 0 GOTO DB2SqlSuccess
Echo Something else happened… (select or fetch statement returned no rows)
Echo All OK
Echo Script finished…