View previous topic :: View next topic |
Author |
Message |
Daya Beginner
Joined: 02 Dec 2002 Posts: 9 Topics: 3 Location: India
|
Posted: Thu Jun 03, 2004 5:05 am Post subject: Sub-system |
|
|
Dear Experts,
One of my colleague who is basically a cobol programmer asked me one intresting question yesterday about started task.
Question is "Is it possible to run two different started task with similar names?" I immediately replied him NO, but after that he showed me two started task with similar name running in his client's mainframe. I really got stuck with my question how is it possible? as I have maintained mainframes earlier, I myself have seen duplicate error message in system console by mistake when I start the same sub-system. Then I told him probably due to system plexing from other lpar image it could be running in this lpar as part of load sharing, I told him I wasn't sure of the answer because I haven't worked in sysplex systems.
Just of curiosity I want to know whether my answer was correct. If not I would like to know the correct answer.
Hope I am clear.
Searched in manuals and forums but hard luck.
Daya |
|
Back to top |
|
|
Daya Beginner
Joined: 02 Dec 2002 Posts: 9 Topics: 3 Location: India
|
Posted: Thu Jun 03, 2004 5:14 am Post subject: |
|
|
Sorry I should have mentioned the subject as "started task" because he was mentioning a started task which is not actually any of the sub-system.
Apologize me.
Daya |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Thu Jun 03, 2004 5:32 am Post subject: |
|
|
Daya,
In a sysplex configuration, it is possible for the same DB2 subsystem to be started at different times on different MVS images. It is also possible to have separate DB2 subsystems of the same name defined on different MVS images within the sysplex. A DB2 subsystem that can be started on more than one MVS image within a sysplex requires the Participates in Sysplex option to be checked. From the Properties page of the Tivoli Business Systems Manager console, for a DB2 subsystem object, select Source/390, and confirm that the Participates in Sysplex option is checked (this is the default value). Conversely, if the DB2 subsystem is defined to only one MVS image, then ensure that the Participates in Sysplex option is not checked.
Having the Participates in Sysplex option selected ensures that only a single copy of data objects is kept in the Tivoli Business Systems Manager database. When the DB2 subsystem is activated in another MVS image, none of the resource types that reside beneath the data sharing resource group is rediscovered (except for new objects defined since the last discovery). Instead, only the high-level resource types such as the master address space up to the EDM Pool will be discovered under the new MVS image. This prevents creation of redundant data objects during discovery and this is also an important performance improvement. If the Participates in Sysplex option had not been selected in this situation, the subsystem would be considered as an entirely new object, and its inclusion in any business systems to which it previously belonged would not be recognized.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
warp5 Intermediate
Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Thu Jun 03, 2004 6:11 am Post subject: |
|
|
As far as I know this all depends on the task and how the programs work. Here is an example of two STC with the same name, but different address spaces:
OPSOSF OPSS002D OPSS
OPSOSF OPSS002F OPSS
Quite often we restart certain tasks that also start a task. If the second task is already running the second task start will usually say that it has already been started and terminate.
Code: |
S JOBTRAC3
$HASP100 JOBTRAC3 ON STCINRDR
IEF695I START JOBTRAC3 WITH JOBNAME JOBTRAC3 IS ASSIGNED TO USER $HASP373 JOBTRAC3 STARTED
IEF403I JOBTRAC3 - STARTED - TIME=13.10.39
CA-JOBTRAC - A CA-JOBTRAC TASK IS ALREADY EXECUTING.
*CA-JOBTRAC - MASTER INITIALIZATION FAILED.
IEF450I JOBTRAC3 JOBTRAC3 - ABEND=S000 U0002 REASON=00000000 888
TIME=13.10.40
IEF404I JOBTRAC3 - ENDED - TIME=13.10.40
$HASP395 JOBTRAC3 ENDED
|
|
|
Back to top |
|
|
Daya Beginner
Joined: 02 Dec 2002 Posts: 9 Topics: 3 Location: India
|
Posted: Thu Jun 03, 2004 7:01 am Post subject: |
|
|
Hi Wrap5,
Adding to it, he said two started tasks have different contents with similar name.
If it can run in different address space, how can I assign different address space to these started task should I hard code anything in the proc?.
Daya |
|
Back to top |
|
|
Mike Chantrey Intermediate
Joined: 10 Sep 2003 Posts: 234 Topics: 1 Location: Wansford
|
Posted: Thu Jun 03, 2004 9:45 am Post subject: |
|
|
Quote: |
If it can run in different address space, how can I assign different address space to these started task should I hard code anything in the proc?.
|
You don't need to. MVS will assign different address space ids to started tasks with the same name. I've seen this on our system with two instances of the same CICS service attempting to run at once (it doesn't work properly, but that's for CICS reasons not MVS reasons). But I think it's highly undesirable to run two different STCs with the same name - it means the name no longer uniquely indentifies the STCs and you have to use the address space id to issue MVS commands such as cancel. In this case it's much easier for operators etc. to get it wrong and cancel the wrong STC with potentially serious results. |
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Jun 03, 2004 2:51 pm Post subject: |
|
|
Started tasks are actually identified by the STEPNAME, not the JOBNAME. Many time they are the same value, but in your example of OPSOSF you see the stepnames are unique. If you wanted to cancel one you would use 'C OPSS002D' command.
Regards,
Bill |
|
Back to top |
|
|
Daya Beginner
Joined: 02 Dec 2002 Posts: 9 Topics: 3 Location: India
|
Posted: Thu Jun 03, 2004 11:52 pm Post subject: |
|
|
Thanks for all your replies. |
|
Back to top |
|
|
|
|