Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Multithreading inside COBOL program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Multithreading inside COBOL program
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Mon Sep 05, 2011 4:55 pm    Post subject: Reply to: Multithreading inside COBOL program
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: 2422
Location: Netherlands, Amstelveen

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

http://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    Post subject: Reply to: Multithreading inside COBOL program
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)

http://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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Mon Sep 05, 2011 5:16 pm    Post subject: Reply to: Multithreading inside COBOL program
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    Post subject: Reply to: Multithreading inside COBOL program
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Mon Sep 05, 2011 5:25 pm    Post subject: Reply to: Multithreading inside COBOL program
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

Site Director


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

PostPosted: Tue Sep 06, 2011 12:03 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us