novicebaan
12th July 2003, 08:59
hello all,

i have created a session for dumping some condition base data in a table.but this program should run once in a month. I am using user define button for inserting . My question is how should i restrict so that it shuold not process more than once

thanx in advance

morpheus
12th July 2003, 09:03
I think the only way is to store the date when the data was last processed. The next time when data is to be processed, the script will check the last date, and function accordingly.

novicebaan
12th July 2003, 11:29
thanx for the reply

i am storing the date but i donot know where to write

bdittmar
12th July 2003, 14:06
Originally posted by novicebaan
hello all,

i have created a session for dumping some condition base data in a table.but this program should run once in a month. I am using user define button for inserting . My question is how should i restrict so that it shuold not process more than once

thanx in advance

Why don't you use the job scheduler for running this session every month?

Regards Bernd

morpheus
14th July 2003, 11:51
Originally posted by novicebaan
thanx for the reply

i am storing the date but i donot know where to write

In the before.program section of the program script, check the current month and the month of the last processing date. Accordingly build the logic.

novicebaan
17th July 2003, 14:29
thanx , i have written a script in before.field . It is working now