View previous topic :: View next topic |
Author |
Message |
harikiran2001 Beginner
Joined: 02 Jan 2008 Posts: 10 Topics: 4
|
Posted: Wed Aug 11, 2010 10:55 pm Post subject: Multithreaded in Batch... |
|
|
HI,
This may be a Weird question....Can we implement Multithreading in Batch...
My main module(COBOL) of our application is both accessed by online and batch programs.
So i thought of calling this program in mulithread passion, from another program so that we can save time.
I heard we can do interrupt handling in PL/1.....So i thought of calling my main module from this PL/1 in an multhithreaded passion...
Like i will give input and call my mainmodule and i will not wait for the control to comeback from mainmodule ...before that i will give another input and trigger another thread....
I see its possible in CICS...Just wanted to check..if this is possible in batch as well using PL/1 or assembler or even COBol(if possible)...
Any inputs are welcome....
Any thoughts ...
Thanks in advance... |
|
Back to top |
|
 |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Wed Aug 11, 2010 11:29 pm Post subject: |
|
|
Suggest you look for other ways to implement.
Even if you get something running, your organization would be ill-advised to allow it to be promoted. There would be no one to maintain it. . . You won't be there forever.
This type of "special solution" mostly leads to special problems. _________________ All the best,
di |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Thu Aug 12, 2010 12:04 am Post subject: |
|
|
harikiran2001,
1. Click on "Quick Manuals" Link at top of this page.
2. Click on Enterprise COBOL Programming Guide
3. Scroll down to chapter 4.4 and read it
You need to understand the concept of multithreading fully before you can implement it
Papadi,
I just don't get as to why this is a "Special solution "? Enterprise COBOL support isn't going away. Why can't he implement this?
Kolusu |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Thu Aug 12, 2010 4:55 am Post subject: |
|
|
harikiran2001 wrote: | My main module(COBOL) of our application is both accessed by online and batch programs.
So i thought of calling this program in mulithread passion, from another program so that we can save time |
I wonder if the TS actually knows what multi-threading is?
harikiran2001, why don't you explain your problem, a little more? _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
harikiran2001 Beginner
Joined: 02 Jan 2008 Posts: 10 Topics: 4
|
Posted: Thu Aug 12, 2010 9:18 am Post subject: |
|
|
Thanks for every body input....I still go through the manuals...But just first thought of replying to "dbzTHEdinosauer" mean while.
This is what my requirement is ...
My main module is accessed both by java programs(GUI) as well as batch programs(cobol) and hence i can say for sure it supports multithreading(GUI)....
But in the batch for now this main module is called from a cobol program in a normal passion...So the cobol pgm reads an input file and gives the first record as input to the mainmodule...
and when control comes back after prcoessing the record1 , it reads anothe record from the file and give it as another input and calls mainmodule...
So this what i want to do..
At a time i will read ten record...
and hit ten calls to the programs and ten threads will be executing parallely and i will get acknowledgement back from the threads... i will hit another ten...
trigger (record1)
trigger(record 2)-- no wait here to control to come back from the called module
trigger (record3)--"" "" ditto"" """
capture(acknoledgment record1)
capture(acknoledgment record2)
Capture(acknoledgment record3)
Thanks in advance...
i gives input to mina module parameters and |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Thu Aug 12, 2010 9:22 am Post subject: |
|
|
I will make no comment on:
Quote: |
My main module is accessed both by java programs(GUI) as well as batch programs(cobol) and hence i can say for sure it supports multithreading(GUI)....
|
but, your batch program:
so you will change your batch program to 'start threads'? _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
harikiran2001 Beginner
Joined: 02 Jan 2008 Posts: 10 Topics: 4
|
Posted: Thu Aug 12, 2010 9:48 am Post subject: |
|
|
Yeap Dick Brenholtz...
Thats what i am thinking on....
COuld you please show me some direction... |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Aug 12, 2010 10:03 am Post subject: |
|
|
Kolusu gave you "some direction". Reading the first part of that section it would seem that, although a COBOL module can run in multiple threads, the threads would have to be creted and controlled by a 'thread-aware' language. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
|
Back to top |
|
 |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Thu Aug 12, 2010 2:07 pm Post subject: |
|
|
Hi Kolusu,
Quote: | I just don't get as to why this is a "Special solution "? Enterprise COBOL support isn't going away. Why can't he implement this?
| To my mind this is "special" because TS has such limited understanding. And apparently, no one else in that organization is familiar with this either - making maintenance/support more problematic.
DBZ wrote: |
I wonder if the TS actually knows what multi-threading is?
| Many "things" are incorrectly referred to in the forums.
I suppose i'm more conscious of things like this due to the number of times i'm invited to participate because something like this has gotten out of control and become a crisis. _________________ All the best,
di |
|
Back to top |
|
 |
harikiran2001 Beginner
Joined: 02 Jan 2008 Posts: 10 Topics: 4
|
Posted: Thu Aug 12, 2010 2:21 pm Post subject: |
|
|
Well...I see my main module is prepared for the Multithreading...But i want to know if i can write the driver program in PL/1 to trigger the threads....
It would be great, If i could get one exmaple program.
Thanks in advance... |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
|
Back to top |
|
 |
|
|