
jdecoder
Well Known Member
Here is the deal guys. I have some multiple foreign tables that need to insert / update and I am using TC to get this done. Now if there is an error it should be all or none. I was not able to put a transaction boundary around the individual TCs. Now I can write a fancy C BSFN to load the table conversion environment and do transaction processing but that’s my last option. Also the File IO Status in these TC is not reliable, meaning the Insert to foreign table fails (with foreign key constraint [don’t ask me why they have constraints on an interface file]) but the File IO Status says SUCCESS and I can clearly see in the log that the insert failed.
Now here my plan:
1. I will run the TC (multiple) in proof mode from a wrapper UBE.
2. After each TC completes I will call a business function that will look back into the logs or thread till that point in time and tell me if anything is in error(file IOs).
3. Based on what this magic business function says I will run the final mode.
I need all your help to make this magic error detecting bsfn.
Thanks for all your help in advance:
JDE 8.12
Tools 8.98.47
AS400 i5 Version 7 Release 1
Foreign environment:
SQL Server on Windows server.
Now here my plan:
1. I will run the TC (multiple) in proof mode from a wrapper UBE.
2. After each TC completes I will call a business function that will look back into the logs or thread till that point in time and tell me if anything is in error(file IOs).
3. Based on what this magic business function says I will run the final mode.
I need all your help to make this magic error detecting bsfn.
Thanks for all your help in advance:
JDE 8.12
Tools 8.98.47
AS400 i5 Version 7 Release 1
Foreign environment:
SQL Server on Windows server.