Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - batch job to extract data from tables in DB2

Reply
 
Old 09-30-2008   #1 (permalink)
Krishnakanth


 
 

batch job to extract data from tables in DB2

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

My System SpecsSystem Spec
Old 10-05-2008   #2 (permalink)
Mr. Arnold


 
 

Re: batch job to extract data from tables in DB2


"Krishnakanth" <Krishnakanth@xxxxxx> wrote in message
news:12AE947D-D0A2-44E8-893C-CA6A59DD427C@xxxxxx
Quote:

>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.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to extract data from a Datatable into another DataTable or dat .NET General
Script to extract XML data VB Script
Extract data out of a seemingly complex structure .NET General
So much for Bitlocker/EFS. MS supplies law enforcement with usb key to extract data System Security
Extract data from web page PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46