Currently there is no standard batch application which enabling End Subsystem Jobs before restart JDE Services. Is there any way to fulfill this?
This document is to provide some suggestions on how to create a batch application that can end subsystem processing.
Refer to <Note 625418.1>- E1: 40: Subsystem Processing for more details on Subsystem processing.
Important !!!
How EnterpriseOne Handles a Subsystem Job through an Interactive Application:
Therefore, this routine can be implemented into a batch application by following these steps:
1. Get Job Information from F986110 (or hardcode it)
This information can be retrieved after getting F986110.FNDFUF2 (Job Detail)
- PID - ProgramId (e.g., R42520)
- VERS - Version (e.g., XJDE0006)
2. Get Job Number from F986110
- EXEHOST - ExecutionHostName (where job is running)
- ENHV - EnvironmentName (e.g., PD900)
With PID, VERS and F98611.JOBSTS (Job Status) = 'P - Processing', this returns a unique Job Number
- JOBNBR - ServerJobNumber
3. Get Original Host, Submit Date and Time through B9800100 - GetAuditInfo (or, Get Audit Information)
4. Hard code additional information (This settings affect actual result)
- ORGHOS - OriginationHostName
- SBMDATE - DateJobSubmitted
- SBMTIME - TimeJobSubmitted
- USER - UserId
5. Insert data into F986113 through JDE Table I/O
- JOBSTS - JobstatusOW (= 'R')
- OPCR - UBEOptionCode (= 'E')
- KOPT - OptionalItemFlag (= '1')
F986113.Insert6. Verify that this action gives you the same result with button click of 'End Subsystem Job' in P986113 - [Work with Subsystem]
VA evt_ProgramId_PID -> TK Program ID
VA evt_Version_VERS -> TK Version History
VA evt_ServerJobNumber_JOBNBR -> TK Server Job Number
VA evt_JobstatusOW_JOBSTS -> TK Job Status
VA evt_UBEOptionCode_OPCR -> TK UBE Option Code
VA evt_ExecutionHostName_EXEHOST -> TK Execution Host Name
VA evt_OriginationHostName_ORGHOS -> TK Origination Host Name
VA evt_EnvironmentName_ENHV -> TK Environment Name
VA evt_UserId_USER -> TK User ID
VA evt_DateJobSubmitted_SBMDATE -> TK Date - Job Submitted
VA evt_TimeJobSubmitted_SBMTIME -> TK Time Job Submitted
VA evt_OptionalItemFlag_KOPT -> TK Optional Item
7. Do not call the business function TerminateJob to handle data from F986110 as table trigger implemented here will take care of processing the job properly.