Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7315

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: 2442
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: 7315

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: 7315

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
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us