For Programmers: Free Programming Magazines  


Home > Archive > Cobol > April 2007 > Re: Using Cobol - Inserting same data into a DB2 table every every week/until a condi









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Using Cobol - Inserting same data into a DB2 table every every week/until a condi
Robert Jones

2007-04-09, 7:55 am

On Apr 9, 7:46 am, "Raya" <lakshmir...@gmail.com> wrote:
> Hi,
> I have a requirement as follows:
>
> I have a COBOL+DB2 program that inserts data into a DB2 table when an
> order is placed. Now, The same data should be inserted into the same
> table after every 7 days until a condition is met. This means I need
> to insert same data after every 7 days until the order is approved/
> denied.
>
> Any help would be highly appreciated.
>
> Thanks,
> Raya.


Hello Raya

This seems to be a batch scheduling problem, i.e. using whatever
facilities your operating system provides, schedule the program to run
as required. The simplest method of course is manual, perhaps by
written instruction to the people in your organisation responsible for
job scheduling.

You might consider redesigning your DB2 table handling so that the
relevant rows aren't deleted till the order is approved or denied.

For more help, you should tell us your operating system, hardware and
compiler, plus the version numbers of them and DB2.

Robert

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com