crincoli
6th March 2002, 11:33
How can I execute a script (3GL) in BaaN, when a session is not present?
For example I had to execute tfcor0410, I created a session linked to that script, but maybe there is another solution.

Thank Pietro

i96nds
6th March 2002, 11:39
Log on in the company where you want to do the changes, I mean the company in which you want to run the correction program.

File/Run Program:

otfcor0410

The "black" window should come up. It works similar to ASCII interface. Be careful with the correction programs !!!

Good Luck,

mark_h
6th March 2002, 14:32
If you have tools permissions you can also go to ttadv2130m000, form 2, then click on application and one of the options is "run".

Just thought I would give another option. :)

Mark

i96nds
6th March 2002, 15:27
I think that if you do like Mark said, you will get the error "506 - Table does not exist". It happened to me. The reason is that the 3GL object will start in company 000, imported from the tools session which runs always in company 000.

With File/Run program, it will work in the company you want.

Mark's idea is very good (and easier !!! ) if in the 3GL script you have the statement:

switch.to.compnr(zzz)

This will force the use of the right company.

Hope this helps,

KlayVessel
7th March 2002, 00:36
You can also run the program from the options shell, by using the same method as described above. The "o" indicates an actual object in Baan.

OmeLuuk
8th March 2002, 14:22
Just for the fun of it,
check this out:

Unix, $BSE $BSE_TMP and $USER set:
$ vi script
__(new file)
__add one line:
____function main(){message("hello world")}
__:wq
$ bic6.1 -l ./script -o ./object
__(-l is optional: will compile in debug mode)
$ ba6.1 ./object

NT works similar... :D