ESP Workload Automation

  • 1.  working abandon submission

    Posted Jul 23, 2018 05:38 PM

    ESP V11R4,,, some one who use abandon submission, does it work? could you give an example?

    this is the application which does not work:

    APPL PPSU2D -
    JOB_ANCESTOR_WAIT(LAST)
    JCLLIB JCLPBC
    RESOLVE ESPSAD12
    RESOURCE (1,BC12_D%ESPSYEAR%ESPSMM%ESPSDD)
    TAG 'BC12_D%ESPSYEAR%ESPSMM%ESPSDD'
    ABANDONH='%ESPAHH%ESPAMN'
    ABANDONDTA='%ESPAYEAR%ESPAMM%ESPADD'
    ABANDONDTS='%ESPSYEAR%ESPSMM%ESPSDD'
    IF %ABANDONDTS < %ABANDONDTA THEN DO
    IF %ABANDONH > '1435' THEN DO
    EXIT
    ENDDO
    ENDDO

    DTTA =''
    DTTS='%ESPSYEAR%ESPSMM%ESPSDD%ESPSTIME'
    ABANDON_TIME =''
    CURR_TIME =''

    JOB JP1IW070.T1SUIWD3 TASK
    SUBAPPL SPSUIWD3
    GENTIME GTFIN 14:30 %ESPSDATE PLUS 1 DAYS
    ABANDON_TIME='%GTFINYEAR%GTFINMM%GTFINDD%GTFINHH%GTFINMN'
    CURR_TIME ='%ESPSYEAR%ESPSMM%ESPSDD%ESPAHH%ESPAMN'
    IF %CURR_TIME > %ABANDON_TIME THEN DO
    EXIT
    ENDDO
    RUN WORKDAY LESS 1 DAYS
    RELEASE ADD(JP1IW070.01SUIWD3)
    ENDJOB

    JOB JP1IW070.01SUIWD3



  • 2.  Re: working abandon submission

    Posted Jul 24, 2018 07:54 AM

    We don't generally use variables for these, so for some simpler examples:

     

    ABANDON SUBMISSION 17:00

    ABANDON SUBMISSION 06:00 TOMORROW

     

    Hope this helps!

    Jonathan



  • 3.  Re: working abandon submission

    Posted Aug 01, 2018 11:24 AM

    hi Jonathan and Lucy,

    I appreciate your response,,, but i found something else,,, the "abandon" parameter does not work with a HELD_MANUAL job,,, any suggest??



  • 4.  Re: working abandon submission

    Broadcom Employee
    Posted Jul 25, 2018 05:11 PM

    ESPA variables are generated when the application was created, and generally they are NOT related to the current date/time when the job is readied.

     

    Also the ABANDON statement is processed when the application was created, so variables on the statements will be replaced at application generation time. And ABANDON statement can only be put on JOB level.

     

    From the ESP Proc you provided, I think you can use following ABANDON for TASK JP1IW070.T1SUIWD3:

    JOB JP1IW070.T1SUIWD3 TASK 
    SUBAPPL SPSUIWD3 

    ABANDON SUBMISSION 14:30 TOMORROW
    RUN WORKDAY LESS 1 DAYS 
    RELEASE ADD(JP1IW070.01SUIWD3) 
    ENDJOB 

     

     

    Hope this helps,

     

    Lucy



  • 5.  Re: working abandon submission

    Broadcom Employee
    Posted Jul 31, 2018 10:26 AM

    Hi Jorge,

     

    Do you have any more concerns?

     

    Thank you for your feedback,

     

    Lucy



  • 6.  Re: working abandon submission

    Posted Aug 01, 2018 11:20 AM

    hi Jonathan and Lucy,

    I appreciate your response,,, but i found something else,,, the "abandon" parameter does not work with a HELD_MANUAL job,,, any suggest??



  • 7.  Re: working abandon submission

    Broadcom Employee
    Posted Aug 02, 2018 12:57 PM

    Hi Jorge,

     

    You are right, the HELD_MANUAL JOB should be submitted outside of ESP, therefore ESP won't be able to abandon its submission. Maybe you can set up a LINK Process to issue MVS command to cancel it.

     

    Same applies to MANUAL or EXTERNAL job, as ESP won't submit for those job types. You can use its successor job and/or home job.

     

    Hope this helps,

     

    Lucy



  • 8.  Re: working abandon submission

    Posted Aug 01, 2018 05:40 PM

    I would think there would be a better way to coordinate this process. 

    The problem with forcing it complete at a specific time is that the job can't have started. If it just started running then you don't want to force it complete. Checking whether it is running before force completing makes the process complex.... 

     

     2¢



  • 9.  Re: working abandon submission

    Broadcom Employee
    Posted Aug 14, 2018 08:27 AM

    Hi Jorge,

     

    Do you have any more concerns? If now, can we mark it as "Answered"?

     

    Thank you for your feedback,

     

    Lucy



  • 10.  Re: working abandon submission

    Posted Aug 14, 2018 10:49 AM

    Hi Lucy,

    not for now, thanks for the everybody answer, it was really helpful to me, thanks for all Lucy.

    if i have more questions, hope you help me

    bye

    JCR