Date format change in MainView does not take effect in MVBATCH report

Version 1
    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


    APPLIES TO:

    MainView Infrastructure all supported versions



    QUESTION:

    I changed the Date Format to 'YYYY/MM/DD' via MainView 'Option 0 - 1 Windows Mode - 4 Date - 7', we can see Date column in the MainView view displays the new format. But when we submitted a MVBATCH job to export some view data, the date format is still 'DD/MMM/YYYY', which is the default format.

    How to change the date format in the MVBATCH report?


    ANSWER:

     

      Date format change is saved in the BBMPROF member in your user ISPPROF library.
    MVBATCH JCL generated by MVBATCH utility does not use your user ISPPROF library.

    For MVBATCH report to pick up the Date format change, you will need to make the following changes i
    n your MVBATCH JCL:  
     
    1) add an IEBCOPY step to copy your user ISPPROF library before the MVBATCH step, see below: 
      
     
      //COPYPROF EXEC PGM=IEBCOPY                                   <===
    //SYSPRINT DD  DUMMY                                          <===
    //SYSUT1   DD  DSN=userprefix.ISPF.ISPPROF,DISP=SHR           <===
    //SYSUT2   DD  DSN=&&TMPPROF,DISP=(NEW,PASS),                 <===
    //             SPACE=(TRK,(90,15,50)),UNIT=VIO,               <===
    //             DCB=(userprefix.ISPF.ISPPROF)                  <=== 
      //*----------------------------------------------------------------
    //* MVBATCH NEEDS USERS ISPF ALLOCATIONS
    //* SO A VALID ISPF ENVIRONMENT WILL BE ESTABLISHED.
    //* BBMAHH80 IS THEN CALLED FROM BBSAMP
    //*----------------------------------------------------------------
    //MVBATCH  EXEC PGM=IKJEFT01,REGION=64M,DYNAMNBR=300,COND=(8,LE)
    //SYSTSPRT DD SYSOUT=*
    //*STEPLIB DD DISP=SHR,DSN=BOCBMC.MV.BBLINK
    //ISPLLIB DD DISP=SHR,DSN=SYS1.DFQLLIB
    //        DD DISP=SHR,DSN=SYS1.DGTLLIB
    //ISPMLIB DD DISP=SHR,DSN=ISP.SISPMENU
    //ISPSLIB DD DISP=SHR,DSN=ISP.SISPSLIB
    //        DD DISP=SHR,DSN=ISP.SISPSENU
    //ISPTLIB DD DISP=SHR,DSN=ISP.SISPTENU
    //        DD DISP=SHR,DSN=ISF.SISFTLIB
    //ISPPLIB DD DISP=SHR,DSN=ISP.SISPPENU
    //        DD DISP=SHR,DSN=SYS1.HRFPANL
    //SYSEXEC DD DISP=SHR,DSN=ISP.SISPEXEC
    //        DD DISP=SHR,DSN=ISP.SISPEXEC
    //ISPLOG DD DCB=(RECFM=VA,LRECL=125,BLKSIZE=129),SYSOUT=*
    //SYSPROC DD DISP=(OLD,PASS),DSN=&TMPEXEC
    //ISPLIST DD DCB=(RECFM=FBA,LRECL=121,BLKSIZE=1210),SYSOUT=*
     
    ... ...  
      
      
      2) modify the ISPPROF DD in the MVBATCH step as follows:   
      
       //ISPPROF DD DSN=&TMPPROF,DISP=(OLD,PASS)    <==== 
      
      
     
     
    After the changes, submit the modified MVBATCH job, you should see the Date format as you set in your MainView ISPF session. 
      
     
      

     


    Article Number:

    000174615


    Article Type:

    FAQ/Procedural



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