Thanks Tom,
What you say is helpful.
My problem may be transaction scopping.
This is the piece of code that I tried to use for testing.
Do you see anything that can help me?
This is the offending session:
[FONT=r_ansi]F[/FONT][FONT=r_ansi]ile Edit Search Buffer Compile Tools Help[/FONT]
[FONT=r_symbol],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,[/FONT]
[FONT=r_ansi]find first gen_loc[/FONT]
[FONT=r_ansi]where gen_loc.entity = ""[/FONT]
[FONT=r_ansi]and gen_loc.loc = "01" no-lock no-error.[/FONT]
[FONT=r_ansi]if available gen_loc then do transaction:[/FONT]
[FONT=r_ansi]find current gen_loc exclusive-lock no-error.[/FONT]
[FONT=r_ansi]if not available gen_loc then[/FONT]
[FONT=r_ansi]message "???" view-as alert-box.[/FONT]
[FONT=r_ansi]else[/FONT]
[FONT=r_ansi]update gen_loc.add1.[/FONT]
[FONT=r_ansi]/* and the user leaves at this point */[/FONT]
[FONT=r_ansi]end.[/FONT]
[FONT=r_ansi]Program is left in this status, i.e. prompting for add1:[/FONT]
[FONT=r_symbol]R,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,T[/FONT]
[FONT=r_symbol].[/FONT][FONT=r_ansi]Add1 [/FONT][FONT=r_symbol].[/FONT]
[FONT=r_symbol].,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.[/FONT]
[FONT=r_symbol].[/FONT][FONT=r_ansi]PRINCE GEORGE SAWMILL [/FONT][FONT=r_symbol].[/FONT]
[FONT=r_symbol]F,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,G[/FONT]
This is promon log while the transaction is active:
[FONT=r_ansi]OpenEdge MONITOR Release 10[/FONT]
[FONT=r_ansi]Database: /u1/ltrack[/FONT]
[FONT=r_ansi]1. User Control[/FONT]
[FONT=r_ansi]2. Locking and Waiting Statistics[/FONT]
[FONT=r_ansi]3. Block Access[/FONT]
[FONT=r_ansi]4. Record Locking Table[/FONT]
[FONT=r_ansi]5. Activity[/FONT]
[FONT=r_ansi]6. Shared Resources[/FONT]
[FONT=r_ansi]7. Database Status[/FONT]
[FONT=r_ansi]8. Shut Down Database[/FONT]
[FONT=r_ansi]R&D. Advanced options[/FONT]
[FONT=r_ansi]T. 2PC Transactions Control[/FONT]
[FONT=r_ansi]L. Resolve 2PC Limbo Transactions[/FONT]
[FONT=r_ansi]C. 2PC Coordinator Information[/FONT]
[FONT=r_ansi]J. Resolve JTA Transactions[/FONT]
[FONT=r_ansi]M. Modify Defaults[/FONT]
[FONT=r_ansi]Q. Quit[/FONT]
[FONT=r_ansi]Enter your selection: T[/FONT]
[FONT=r_ansi]1. Display all entries[/FONT]
[FONT=r_ansi]2. Match a user number[/FONT]
[FONT=r_ansi]3. Match a range of user numbers[/FONT]
[FONT=r_ansi]Q. Return to main menu[/FONT]
[FONT=r_ansi]Enter your selection: 1[/FONT]
[FONT=r_ansi]Transaction Control:[/FONT]
[FONT=r_ansi]Usr Name Trans Login Time R-comm? Limbo? Crd? Coord Crd-task[/FONT]
[FONT=r_ansi]14 jamaly 1222640510 11/01/11 15:33 no no no 0 [/FONT]
[FONT=r_ansi]RETURN - repeat, U - continue uninterrupted, Q - quit: Q[/FONT]
[FONT=r_ansi]OpenEdge MONITOR Release 10[/FONT]
[FONT=r_ansi]Database: /u1/ltrack[/FONT]
[FONT=r_ansi]1. User Control[/FONT]
[FONT=r_ansi]2. Locking and Waiting Statistics[/FONT]
[FONT=r_ansi]3. Block Access[/FONT]
[FONT=r_ansi]4. Record Locking Table[/FONT]
[FONT=r_ansi]5. Activity[/FONT]
[FONT=r_ansi]6. Shared Resources[/FONT]
[FONT=r_ansi]7. Database Status[/FONT]
[FONT=r_ansi]8. Shut Down Database[/FONT]
[FONT=r_ansi]R&D. Advanced options[/FONT]
[FONT=r_ansi]T. 2PC Transactions Control[/FONT]
[FONT=r_ansi]L. Resolve 2PC Limbo Transactions[/FONT]
[FONT=r_ansi]C. 2PC Coordinator Information[/FONT]
[FONT=r_ansi]J. Resolve JTA Transactions[/FONT]
[FONT=r_ansi]M. Modify Defaults[/FONT]
[FONT=r_ansi]Q. Quit[/FONT]
[FONT=r_ansi]Enter your selection: 8[/FONT]
[FONT=r_ansi]usr pid time of login user id tty Limbo?[/FONT]
[FONT=r_ansi]5 319 Fri Aug 26 14:10:49 2011 APW no[/FONT]
[FONT=r_ansi]6 323 Fri Aug 26 14:10:50 2011 APW no[/FONT]
[FONT=r_ansi]7 331 Fri Aug 26 14:10:52 2011 BIW no[/FONT]
[FONT=r_ansi]8 337 Fri Aug 26 14:10:54 2011 WDOG no[/FONT]
[FONT=r_ansi]9 378 Fri Aug 26 14:10:56 2011 BATCH batch no[/FONT]
[FONT=r_ansi]10 3119 Fri Aug 26 14:41:13 2011 FINISHER batch no[/FONT]
[FONT=r_ansi]11 26200 Tue Nov 1 12:50:38 2011 jamali /dev/pts/td no[/FONT]
[FONT=r_ansi]12 20293 Tue Nov 1 08:54:48 2011 rossif /dev/pts/ta no[/FONT]
[FONT=r_ansi]13 14722 Tue Nov 1 10:23:36 2011 jamaly /dev/pts/tb no[/FONT]
[FONT=r_ansi]14 12645 Tue Nov 1 15:33:35 2011 jamaly /dev/pts/tg no[/FONT]
[FONT=r_ansi]15 23255 Tue Nov 1 09:06:49 2011 EWRAPPER batch no[/FONT]
[FONT=r_ansi]16 21564 Tue Nov 1 14:19:57 2011 jamali /dev/pts/th no[/FONT]
[FONT=r_ansi]1 Disconnect a User [/FONT]
[FONT=r_ansi]2 Unconditional Shutdown[/FONT]
[FONT=r_ansi]3 Emergency Shutdown (Kill All)[/FONT]
[FONT=r_ansi]x Exit[/FONT]
[FONT=r_ansi]Enter choice> 1[/FONT]
[FONT=r_ansi]Enter the user number which is to be disconnected: 14[/FONT]
[FONT=r_ansi]User 14 disconnect initiated. (6796)[/FONT]
[FONT=r_ansi]usr pid time of login user id tty Limbo?[/FONT]
[FONT=r_ansi]5 319 Fri Aug 26 14:10:49 2011 APW no[/FONT]
[FONT=r_ansi]6 323 Fri Aug 26 14:10:50 2011 APW no[/FONT]
[FONT=r_ansi]7 331 Fri Aug 26 14:10:52 2011 BIW no[/FONT]
[FONT=r_ansi]8 337 Fri Aug 26 14:10:54 2011 WDOG no[/FONT]
[FONT=r_ansi]9 378 Fri Aug 26 14:10:56 2011 BATCH batch no[/FONT]
[FONT=r_ansi]10 3119 Fri Aug 26 14:41:13 2011 FINISHER batch no[/FONT]
[FONT=r_ansi]11 26200 Tue Nov 1 12:50:38 2011 jamali /dev/pts/td no[/FONT]
[FONT=r_ansi]12 20293 Tue Nov 1 08:54:48 2011 rossif /dev/pts/ta no[/FONT]
[FONT=r_ansi]13 14722 Tue Nov 1 10:23:36 2011 jamaly /dev/pts/tb no[/FONT]
[FONT=r_ansi]15 23255 Tue Nov 1 09:06:49 2011 EWRAPPER batch no[/FONT]
[FONT=r_ansi]16 21564 Tue Nov 1 14:19:57 2011 jamali /dev/pts/th no[/FONT]
[FONT=r_ansi]1 Disconnect a User [/FONT]
[FONT=r_ansi]2 Unconditional Shutdown[/FONT]
[FONT=r_ansi]3 Emergency Shutdown (Kill All)[/FONT]
[FONT=r_ansi]x Exit[/FONT]
[FONT=r_ansi]Enter choice> x[/FONT]
[FONT=r_ansi]OpenEdge MONITOR Release 10[/FONT]
[FONT=r_ansi]Database: /u1/ltrack[/FONT]
[FONT=r_ansi]1. User Control[/FONT]
[FONT=r_ansi]2. Locking and Waiting Statistics[/FONT]
[FONT=r_ansi]3. Block Access[/FONT]
[FONT=r_ansi]4. Record Locking Table[/FONT]
[FONT=r_ansi]5. Activity[/FONT]
[FONT=r_ansi]6. Shared Resources[/FONT]
[FONT=r_ansi]7. Database Status[/FONT]
[FONT=r_ansi]8. Shut Down Database[/FONT]
[FONT=r_ansi]R&D. Advanced options[/FONT]
[FONT=r_ansi]T. 2PC Transactions Control[/FONT]
[FONT=r_ansi]L. Resolve 2PC Limbo Transactions[/FONT]
[FONT=r_ansi]C. 2PC Coordinator Information[/FONT]
[FONT=r_ansi]J. Resolve JTA Transactions[/FONT]
[FONT=r_ansi]M. Modify Defaults[/FONT]
[FONT=r_ansi]Q. Quit[/FONT]
[FONT=r_ansi]Enter your selection: t[/FONT]
[FONT=r_ansi]1. Display all entries[/FONT]
[FONT=r_ansi]2. Match a user number[/FONT]
[FONT=r_ansi]3. Match a range of user numbers[/FONT]
[FONT=r_ansi]Q. Return to main menu[/FONT]
[FONT=r_ansi]Enter your selection: 1[/FONT]
[FONT=r_ansi]Transaction Control:[/FONT]
[FONT=r_ansi]Usr Name Trans Login Time R-comm? Limbo? Crd? Coord Crd-task[/FONT]
[FONT=r_ansi]14 jamaly 1222640510 11/01/11 15:33 no no no 0 [/FONT]
[FONT=r_ansi]RETURN - repeat, U - continue uninterrupted, Q - quit: [/FONT]
Even after 10 min that transaction is still active.