Change Print Date Field to Last Access Date on Panel SARP2A7
search cancel

Change Print Date Field to Last Access Date on Panel SARP2A7

book

Article ID: 46827

calendar_today

Updated On:

Products

View

Issue/Introduction

On panel SARP2A7, the fields _FPRTDATE and @PRTDATE were changed to FACCDAT and ACCDAT, respectively.

They ran a SARDBASE OLOAD, to load the panel change.

The end result was that the panel was not showing what was expected.

Environment

  • View®
  • OM View for z
  • Output Management View® for z/OS

Resolution

To have the proper values appear, the _FACCDAT and @ACCDAT fields should be used on the panels, per the below:

Before:

¬Sel $Sysout ID                       !Read Date !Time !Print Date!Time +       

 ==> _FID                             _FRDRDATE  _Z    _FPRTDATE  _Z    +       

)MODEL                                                                          

_Z   ¢KEY                             @RDRDATE   @Z    @PRTDATE   @Z    +       

)INIT                                                                           

  &VARS = '(FRDRTIME FPRTTIME SELECT RDRTIME PRTTIME)'                          


After:

¬Sel $Sysout ID                       !Read Date !Time !Lst Acs Dt!Time +       

 ==> _FID                             _FRDRDATE  _Z    _FACCDAT   _Z    +       

)MODEL                                                                          

_Z   ¢KEY                             @RDRDATE   @Z    @ACCDAT    @Z    +       

)INIT                                                                           

  &VARS = '(FRDRTIME FPRTTIME SELECT RDRTIME PRTTIME)'                          

The _FACCDAT date field will have a value if a report was accessed.  If the report was never accessed, the Date field (and Time field) will be blanks. The Time field may have a value, but according to the panel layout, that Time field would be from when a report was last printed, and not from when it was last accessed.