ESP Workload Automation

 View Only
  • 1.  IF TODAY('GT 10/10/2024') THEN RUN TODAY

    Posted Oct 10, 2024 07:15 PM

    What is the proper IF TODAY() syntax for this date consideration?

    I'm adding a job to an existing appl but the job should not execute until after a declared date.

    I know this is not it, but what is the correct syntax?

    IF TODAY('GT 10/10/2024') THEN RUN TODAY



  • 2.  RE: IF TODAY('GT 10/10/2024') THEN RUN TODAY

    Posted Oct 11, 2024 12:53 AM

    Loren

    We have these coded in our procs for examples

    /*====================================================================*/
    /* EXAMPLES OF USING DATES                                            */
    /*====================================================================*/
    /* IF TODAY('JUL 10, 2006') THEN DO                                   */
    /*====================================================================*/
    /*JOBS WILL START FROM THE 23RD MAY 06                                */
    /* IF DAYS_TO('MAY 23, 2006') <= 0 THEN DO                            */
    /*====================================================================*/
    /*JOBS WILL FINISH RUNNING AT THE 31ST JUL 06                         */
    /* IF DAYS_TO('JUL 31, 2006') >= 0 THEN DO                            */
    /*====================================================================*/
    /*JOBS WILL RUN WITHIN THE REQUIRED DAY RANGE.                        */
    /*  IF TODAY('15TH-25TH DAY OF MONTH') THEN DO                        */
    /*====================================================================*/
    /*JOBS WILL RUN WITHIN THE REQUIRED RANGE.                            */
    /*IF DAYS_FROM('MAY 01, 2013') GE 0 -                                 */
    /*   AND DAYS_TO('JUN 30, 2013') GE 0 THEN DO                         */
    /**********************************************************************/
    /* END OF EXAMPLES                                                    */
    /**********************************************************************/

    Thanks

    TJ




  • 3.  RE: IF TODAY('GT 10/10/2024') THEN RUN TODAY

    Posted Oct 11, 2024 11:34 AM

    Instead of using 'IF TODAY', at the job level use the word 'STARTING' with your RUN statement for the future date.  

    RUN NOW STARTING Oct xx, 2024

    For confirmation, simulate for the day before the starting date, and the actual starting date.  

    -Loraine




  • 4.  RE: IF TODAY('GT 10/10/2024') THEN RUN TODAY

    Posted Oct 14, 2024 01:36 PM

    Thank you @Loraine Mueller for the suggestion.




  • 5.  RE: IF TODAY('GT 10/10/2024') THEN RUN TODAY

    Posted Oct 14, 2024 01:38 PM

    Thank you @TERESA JOHNSON for the suggestion. I'll be able to use your and Loraine's ideas.