View previous topic :: View next topic
|
Author |
Message |
samedesh Currently Banned New User
Joined: 22 May 2007 Posts: 46 Location: India
|
|
|
|
Hi,
I have created one tool which updates ISPF table and displays rows on panel. This tool is working fine for me. But when I tested it on two terminals simultaneously, it gave me error similar to "Table is in use. Cannot open the table for processing"
Now my question is - Can more than one user use my table for running the tool simultaneously without giving above error?
If yes, please give your valuable suggestions. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
If you are opening the table with WRITE, then no, two users may never have it open simultaneously. In fact, two logical sessions of the same user may not have it open for WRITE simultaneously.
We have two similar tools for displaying ISPF tables. One opens the table with NOWRITE, effectively browses the table, closes it with TBEND, and may be run against a given table by multiple users simultaneously. The other opens the table with WRITE, closes it with TBCLOSE, attempting to save changes made, and may be run only a single user at a time against any given table. |
|
Back to top |
|
|
samedesh Currently Banned New User
Joined: 22 May 2007 Posts: 46 Location: India
|
|
|
|
Hi,
In my tool every user needs to open ISPF table(with write option) to add records into the table and then deletes them from table.
If we cannot use table in share mode then how option 3.16 "ISPF Table Utility" is working, so I think their might be some solution for this.
Please help... |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Have a step of the process where each user has to submit a job to perform the table update. This way only the job can open the table for WRITE. |
|
Back to top |
|
|
samedesh Currently Banned New User
Joined: 22 May 2007 Posts: 46 Location: India
|
|
|
|
Hi Kevin,
Thanks for the suggestion. I have basic knowledge of JCL and Rexx, but you can consider me as a fresher for JCL and Rexx interface through rexx program. Could you please provide me any documents or sites which can explain how to create interface between JCL and rexx. |
|
Back to top |
|
|
samedesh Currently Banned New User
Joined: 22 May 2007 Posts: 46 Location: India
|
|
|
|
Hi Akatsukami,
Thanks for the suggestion you gave regarding opening a table in write/no write option.
My logic is now working fine and more than one user can run tool.
I kept table(with write option) open while displaying panel. but now I close as soon as update is finished and opens table with nowrite option to display rows on table.
Thanks to all. |
|
Back to top |
|
|
|