Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
COBOL thread on windows

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PC Tech Help & IT News
Author Message
prashant_mq

New User


Joined: 29 Aug 2006
Posts: 25

PostPosted: Wed Jun 11, 2008 5:49 am    Post subject: COBOL thread on windows
Reply with quote

Hi,

I have a main program and a subprogram which need to be run in separate threads.
I am using cob2 compiler(visualage) to do this.

cob2 -qthread main.cbl

cob2 -qthread sub.cbl

After compilation when I run the main.exe,its not creating 2 threads bit only one.Both programs are in recursive mode.
I am using function pointer to call the subprogram and linking it dynamically.

Any idea as to why I am not seeing 2 threads but one?

Thanks
Back to top
View user's profile Send private message
References
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8643
Location: 221 B Baker St

PostPosted: Wed Jun 11, 2008 6:08 am    Post subject:
Reply with quote

Hello,

How was it determined that a sub-program should run in a different thread than the calling program? This is not normal cobol processing. . .

What does the code do that requires (or could even be supported by) 2 threads?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PC Tech Help & IT News All times are GMT + 6 Hours
Page 1 of 1