TIME command not working in MVBATCH report

Version 2
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    MainView Infrastructure



    QUESTION:

    Trying to run a batch report of a view with a time parameter but the time parameter is not being honored.

    Below are the BATCMD statements used for the JCPUZ view:

    SET BATCMD = + 
    &STR(TIME 9MAR2018 05:00 48H) 
    SET BATCMD2 = + 
    &STR(JCPUZ) 

     


    ANSWER:

     

    The BATCMD needs to open the JCPUZ view first, then apply the TIME command.  Also the day must be specified in two digits.  Instead of 9, specify it as 09.

    Here is the correct format for the BATCMD.

      

    SET BATCMD = + 
    &STR(JCPUZ;TIME 09MAR2018 05:00 48H;IN DATE;IN TIME ) 

     


    Article Number:

    000151415


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles