-
Forum
-
T24 Technical Discussions
-
T24 Development & Customization
-
WRITESEQ not working for multi-thread routine
WRITESEQ not working for multi-thread routine
-
subhashmurali
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 23
-
Thank you received: 2
-
-
6 years 10 months ago #21211
by subhashmurali
Dear All,
I wrote a multi-thread routine to extract data from T24 table and writing to a folder using WRITESEQ. When using multiple agents, all the records are not writing to the file. Whereas with a single agent, it is able to write all records. I can see WRITESEQ is failing to write some records as the message from 'ELSE' part is displayed and some are totally ignored. Appreciate if you could through some light on this issue.
Thanks
Please Log in or Create an account to join the conversation.
-
VK
-
-
Away
-
Platinum Member
-
-
Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
-
Posts: 1116
-
Thank you received: 150
-
-
-
6 years 10 months ago #21212
by VK
Hi
I afraid WRITESEQ is not very secure way to be used while concurrently writing to a text file. Instead you can create several files (one per agent) and then concatenate them. The other solution would be to write to a hashed jBASE file concurrently by different agents (be sure that ID of this file contains unique agent identifier - like TNO). Then you can convert this hashed file to a text one (and this could be even faster than the first approach).
Cheers
VK
The following user(s) said Thank You: subhashmurali
Please Log in or Create an account to join the conversation.
-
subhashmurali
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 23
-
Thank you received: 2
-
-
-
Forum
-
T24 Technical Discussions
-
T24 Development & Customization
-
WRITESEQ not working for multi-thread routine
Time to create page: 0.100 seconds