Tom:

I can't find examples of how run a C mainline with COBOL threads. Can anyone 
point me the direction of good working examples ?

Scott ford
www.identityforge.com

Tell me and I'll forget; show me and I may remember; involve me and I'll 
understand. - Chinese Proverb


On Nov 9, 2012, at 2:26 PM, Tom Ross <[email protected]> wrote:

>> I don't know of any examples but I should imagine it's as simple of=20
>> starting POSIX C stub threads that call COBOL programs. If you want to=20
>> use shared data structures and use
>> mutexes or condvars in the COBOL programs then you will have to either=20
>> create COBOL records to map the DSECTS or write some assembler routines=20
>> to call the BPX services.
> 
> Or use LOCAL-STORAGE instead of WORKING-STORAGE and then compile your programs
> with the THREAD compiler option and let IBM do all the Mutex and locking work.
> 
> 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

Reply via email to