PC Review


Reply
Thread Tools Rate Thread

batch job to extract data from tables in DB2

 
 
Krishnakanth
Guest
Posts: n/a
 
      30th Sep 2008
I have got a requirement as follows.

I am having a table RCBL_ERROR in a database in DB2.

I need to create a batch file, which has to extract the rows from this table
and write those extracted records to a text file.
And that text file needs to be placed in the folders ORD and BKUP.

The text file name should be "error_report_09302008.txt"
The error report name will be like error_report_<date>.

Since this is a batch job, can we schedule this batch job to run daily at 1
AM PST.

is it possible ?

If so can anyone give me some samples

Thanks in advance.

Krishnakanth
 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a
 
      5th Oct 2008

"Krishnakanth" <(E-Mail Removed)> wrote in message
news:12AE947D-D0A2-44E8-893C-(E-Mail Removed)...
>I have got a requirement as follows.
>
> I am having a table RCBL_ERROR in a database in DB2.
>
> I need to create a batch file, which has to extract the rows from this
> table
> and write those extracted records to a text file.
> And that text file needs to be placed in the folders ORD and BKUP.
>
> The text file name should be "error_report_09302008.txt"
> The error report name will be like error_report_<date>.
>
> Since this is a batch job, can we schedule this batch job to run daily at
> 1
> AM PST.
>
> is it possible ?


Sure you can do it. You can write a VB.Net or C#.NET Windows desktop
solution that has nothing on the form no Win controls on the Win from,
minimize the form so it's not seen.

You can run the program-name.exe in a batch file. You can even check the
return-code that the program would return to the batch, and process
accordingly based on the return-code.

You can also just make a Console Application that starts and ends itself
with no user interaction and just schedule the exe to run. You can do the
same with the Windows solution up a above there too and not even need a
batch file, just schedule the exe.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract data from three tables sgupta Microsoft Access Queries 0 13th May 2011 05:46 PM
Extract data to create numerous tables confused09 Microsoft Excel Misc 3 12th Aug 2009 04:23 PM
Use Access to Batch Process: Extract Data from Form Fields in Word ryguy7272 Microsoft Access VBA Modules 2 14th Jun 2008 07:01 PM
Batch extract PDF data to Excel using regular expressions dwilkie@gmail.com Microsoft Excel Programming 0 25th Jul 2006 10:12 AM
Extract data from Tables (in VB) James \(Singapore\) Microsoft Access VBA Modules 1 25th Mar 2004 07:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 PM.