Tom,
Thank you very much, I appreciate the clarification, I thought this was how threading worked with Cobol but wanted to make sure. Regards, Scott From: Tom Ross Sent: Thursday, May 8, 2014 2:02 AM To: IBM Mainframe Discussion List >I have written a C program using threads and have a question. I have an ext= >ernal message table that I need to be persistent between threads. The mess= >age table is loaded from an external QSAM file. Program in Cobol loads the = >table. I want to be able to use the message table in other threads. Does an= >yone know is Working-Storage from one thread available to other threads ?=20 Yes! In fact, all of your COBOL threads would be using a single copy of WORKING-STORAGE, so if one of them wants to do something that does not affect the others then the programs need LOCAL-STORAGE variables. Normally with multi-threading you would not use WORKING-STORAGE because of this. In your case, defining your table in WORKING-STORAGE and your other variables in LOCAL-STORAGE would work great! Cheers, TomR >> COBOL is the Language of the Future! << ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
