IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Multithreading inside COBOL program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
k_v_mahesh

New User


Joined: 25 May 2010
Posts: 15
Location: chennai

PostPosted: Mon Sep 05, 2011 4:44 pm
Reply with quote

Is it possible to multithread a set of process (independent subroutines)
inside a COBOL program like what we do in PL/1 or C.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Sep 05, 2011 4:55 pm
Reply with quote

The answer could be Yes or No, or Maybe.

Please describe exactly what you would like to achieve, and why multi-threading is your best tool, and how you could do it in PL/I and C, please.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Sep 05, 2011 5:06 pm
Reply with quote

publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=%2Fcom.ibm.entcobol.doc_3.4%2Ftpthr02.htm
Back to top
View user's profile Send private message
k_v_mahesh

New User


Joined: 25 May 2010
Posts: 15
Location: chennai

PostPosted: Mon Sep 05, 2011 5:09 pm
Reply with quote

I have a requirement where a set of independent subroutines that can be spanned out independently inside the program to be executed without going for a linear execution.At some point I can reconcile the results of both and proceed linearly.

I read this article in IBM (multithreading C main program and two COBOL programs)

publib.boulder.ibm.com/infocenter/comphelp/v111v131/index.jsp?topic=%2Fcom.ibm.aix.cbl.doc%2FPGandLR%2Ftasks%2Ftpthr02.htm
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Sep 05, 2011 5:16 pm
Reply with quote

Are you running under AIX?
Back to top
View user's profile Send private message
k_v_mahesh

New User


Joined: 25 May 2010
Posts: 15
Location: chennai

PostPosted: Mon Sep 05, 2011 5:20 pm
Reply with quote

No it is not in AIX...

I would like to know if it is feasible in zO/S.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Sep 05, 2011 5:25 pm
Reply with quote

Follow Peter's link to know.

I don't understand if the things are "independent" why you feel you need to have them in one program? I don't think your explanation of the requirement has been sufficiently full to provide a great deal of help to you.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 06, 2011 12:03 am
Reply with quote

Hello and welcome to the forum,

I suspect there is no business reason to do this. . .

Quote:
I read this article in IBM (multithreading C main program and two COBOL programs)
If you are determined to implement this, why not use the method shown?

I have only seen several 10s of thousands of batch implementations that have multiple "things to do" that are independent and they are always done serially if they are in the same job.

Also, both could be run concurrently with any follow-on process(es) scheduled after both have successfully completed.

Keep in mind that someone (probably not you) will have to maintain this some day and will have no background.

Other than wanting to implement somethng clever, why is this being considered?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top