pinakin
11th September 2002, 09:08
Hi All,

I am using Jobs to automate some process without any problem. But now I want to something like the perticular job should take some parameter and based on the parametes the assigned process to the job should be executed.

for example: In the The session Process Delivered Sales Order(tdsls4223m000) hte uset has be give a date. I want to automate this session using job, but I want the system should take the system date as 'Delete up to (Date)'.

If anyone can know I would like to know how the system/Job/assigned session to a job will take parametes before executing the assigned process.


Please let me know.


Best regards


Pinakin

NPRao
11th September 2002, 09:24
Pinakin,

I think your current situation is good enough and you might be asking for more complexity when you think of simplifiying with having your own job controller.

But here's an idea anyways. You can create a session with 3-GL script, which can take arguments.

The arguments can be read based on the tools functions -
get.argc(), string get.string.arg( long arg_no ) and long get.long.arg( long arg_no ) etc.

Then the program invokes the $BSE/bin/bshell6.2 or ba6.2 (your baan versions) with the appropriate jobid/jobname, user, company, package combination etc.

You might try it out and post your results here.

Good Luck! :cool:

Darren Phillips
11th September 2002, 10:05
when you use the make job option from the session it asks you if it should consider the difference between entered date and system date ?. if answer yes then the dates will be incrementated each time it runs.

Another option would be to create a function server.