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
 
Same EXTERNAL DEPENDENCIE resolve for two Ocurrence added

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
dbordon

New User


Joined: 25 Jan 2007
Posts: 20
Location: Argentina

PostPosted: Tue May 08, 2012 7:23 pm    Post subject: Same EXTERNAL DEPENDENCIE resolve for two Ocurrence added
Reply with quote

Could you help me figure out the following:
I had three applications which are adding trought batch job (not always using ETT) application xxxxx into the Current plan.

Problem is that two ocurrences of applid xxxxx runs almost togheter.
How this happened?

See OPC audit:
05/02 23.05.12 CP UPDT BY TESTER MCP ADD APPL: XXXXX APPL: XXXXX IA: 120502 2303 PRTY: 5
- OPNO:015 TYPE: INT. DEP. ADDED TYPE:INT. DEP. ADDED TYPE: PRED OPNO:009
- OPNO:020 TYPE: INT. DEP. ADDED TYPE:INT. DEP. ADDED TYPE: PRED OPNO:015
- OPNO:030 TYPE: INT. DEP. ADDED TYPE:INT. DEP. ADDED TYPE: PRED OPNO:020
- OPNO:035 TYPE: INT. DEP. ADDED TYPE:INT. DEP. ADDED TYPE: PRED OPNO:030
- OPNO:089 TYPE: INT. DEP. ADDED TYPE:INT. DEP. ADDED TYPE: PRED OPNO:035
- OPNO:009 TYPE: EXT. DEP ADD TYPE: PRED OPNO:089 APPL: XXXXX 120502 2232
05/02 23.05.12 CP UPDT BY TESTER MCP ADD APPL: XXXXX APPL: XXXXX IA: 120502 2300 PRTY: 5
- OPNO:015 TYPE: INT. DEP. ADDED TYPE:INT. DEP. ADDED TYPE: PRED OPNO:009
- OPNO:020 TYPE: INT. DEP. ADDED TYPE:INT. DEP. ADDED TYPE: PRED OPNO:015
- OPNO:030 TYPE: INT. DEP. ADDED TYPE:INT. DEP. ADDED TYPE: PRED OPNO:020
- OPNO:035 TYPE: INT. DEP. ADDED TYPE:INT. DEP. ADDED TYPE: PRED OPNO:030
- OPNO:089 TYPE: INT. DEP. ADDED TYPE:INT. DEP. ADDED TYPE: PRED OPNO:035
- OPNO:009 TYPE: EXT. DEP ADD TYPE: PRED OPNO:089 APPL: XXXXX 120502 2232

Applid XXXXX runs "toghether" becuase they acknowledge the same EXTERNAL DEPENDENCIE IATIME:
- OPNO:009 TYPE: EXT. DEP ADD TYPE: PRED OPNO:089 APPL: XXXXX 120502 2232

I cannot understand what happened. Maybe i should consult IBM.
Back to top
View user's profile Send private message

David Robinson

Active User


Joined: 21 Dec 2011
Posts: 182
Location: UK

PostPosted: Wed May 09, 2012 1:50 pm    Post subject:
Reply with quote

So are these two applications both being added in one step, but you want one to be dependent on the other? I assume that's the case as the audit timestamp is 23:05:12 for both.

Which app are you adding first? From the audit it looks as though the 23:03 version is added first. This applies the dependency on the previous 22:32 schedule which is presumably correct. Then when you add the 23:00 version, it will apply the same dependency as that is the only application with an earlier or equal IA time.

If you added the 23:00 version first, followed by the 23:03 version, you may get different results.
Back to top
View user's profile Send private message
dbordon

New User


Joined: 25 Jan 2007
Posts: 20
Location: Argentina

PostPosted: Thu May 10, 2012 3:17 am    Post subject: Reply to: Same EXTERNAL DEPENDENCIE resolve for two Ocurrenc
Reply with quote

Thanks for your interest David.
The thing is like this:
Applications APPL1, APPL2 and APPL3 are adding application XXXXX into the current plan.

Some of those three applications are triggered by an ETT, other no. So application XXXXX can be added to the current plan at any time.

Now, in this particular case application XXXXX is was added twice at the same time, by two of those applications (APPL1-2-3).

TWS assign a different "start" IATIME for each of these new Current Plan ocurrences, but why it assigns the same EXTERNAL IATIME?
When program do not assign different EXTERNAL IATIME for these equals ocurrences both of them were allow to start.
Obviously they made a little disaster by executing almost at the same time by JES2, the operations were mixed and came up with a DISP Dataset invalid (yes! because one previous operation deleted a dataset that the next one use).


At that time is probably that system was heavily used, but TWS mix up the external IATIME, i think that was not possible.

My question is: Should i think that it is something wrong with TWS?

For last, TWS audit is helpful but there is no documentation to support it. I know it is not "rocket science" but... for example the timestamp of the begginng of each record correspond to the order of process by JT VSAM?
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 182
Location: UK

PostPosted: Thu May 10, 2012 12:26 pm    Post subject:
Reply with quote

I'm still not quite clear on this. Isn't the external IA time that you refer to simply the IA time of the earlier occurence, ie; 22:32? There is no "External IA time" as such. The EXT DEP ADD message is simply showing you which occurence of the earlier schedule the dependency is being resolved to, and there is no reason why that shouldn't be both the same one.

This is what I would expect with the IA times of the new applications that are being added, ie; 23:03 followed by 23:00. How are these IA times generated? Are these specified by you or defaulted by TWS? If the latter I don't see how two applications added at 23:05 can have IA times of 23:03 and 23:00. They should be 23:05 and 23:06.

The examples you show above are not being added by ETT, if they were the audit would say UPDT BY ETT. Presumably TESTER is a batch or TSO user?

Finally, for this scenario, I would suggest special resources might be a better way of controllong the schedules. Assuming you are on v8.3 or later, have the first job in the schedule use a special resource which gets set to unavailable when the job completes. The last job could then issue a SRSTAT to set it back to available.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts How to resolve IMS DB status code FM Priyanka Boga IMS DB/DC 3 Fri Jun 10, 2016 1:54 pm
No new posts How to pass a structure to external p... Pedro PL/I & Assembler 8 Tue Jan 19, 2016 7:05 am
No new posts how to Resolve SQL Error Code -924 Rajesh3825 ABENDS & Debugging 2 Thu Dec 10, 2015 2:39 pm
No new posts Copy from VB to FB with added sequenc... bommu DFSORT/ICETOOL 4 Thu Sep 24, 2015 2:14 am

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