Advertisement

07.22.2008 at 04:47PM PDT, ID: 23586962
[x]
Attachment Details

db2 commands in a batch file

Asked by anirrao in Windows Batch Scripting, DB2 Database

Tags: db2, 8.2.9

I have a query  select (current date - date(last_refresh_timestamp)) from tbname where some condition
I want the o/p of the query to be assigned to some variable in a batch script,check whether the result of the query>1 then issue net stop svcename ,I need to run it as a batch file.Any ideas on how to accomplish this.Start Free Trial
[+][-]07.22.2008 at 08:26PM PDT, ID: 22065748

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 05:24AM PDT, ID: 22068354

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Windows Batch Scripting, DB2 Database
Tags: db2, 8.2.9
Sign Up Now!
Solution Provided By: Kdo
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628