Why do Easytrieve Plus Report Generator 6.4 and PanAudit Plus 3.0 both contain the PAPLDATE module? Also, can the PAPLDATE module be shared between these products?
Easytrieve Plus Report Generator, release 6.4
PanAudit Plus, release 3.0
PAPLDATE is distributed with Easytrieve Plus Report Generator so that any Easytrieve Plus Report Generator user can invoke the DATECONV macro (which calls PAPLDATE). PanAudit Plus also distributes DATECONV and PAPLDATE, (along with many other macros and subroutines that are not included in Easytrieve Plus Report Generator). The DATECONV routine converts a date in one format to another date format. For example, you can convert month-day-year to year-month-day, Julian to Gregorian, and perform similar date conversions.
Easytrieve Plus Report Generator and PanAudit Plus both distribute different PAPLDATE modules because Easytrieve Plus Report Generator 6.4 introduced 31-bit mode support while PanAudit Plus does not provide support for 31-bit mode at this time. As such, the PAPLDATE from Easytrieve Plus Report Generator is distributed with AMODE=31, RMODE=ANY and the PAPLDATE from PanAudit Plus is distributed with AMODE=24, RMODE=24.
Many of the Easytrieve Plus Report Generator 6.4 routines (including PAPLDATE) use AMODE=31. Easytrieve Plus Report Generator customers who do not use PanAudit Plus, and do not call 24-bit subroutines, can specify the Easytrieve Plus Report Generator option ALL31=YES, so that at runtime, dynamic storage is allocated above 16 MB. PanAudit Plus is driven by Easytrieve Plus Report Generator. Since PanAudit Plus does not use AMODE=31, and it does call 24-bit subroutines, PanAudit Plus users should specify Easytrieve Plus Report Generator option ALL31=NO, so that at runtime, dynamic storage is allocated below 16 MB.
The PAPLDATE modules should not be shared. The two different product's installation processes link their PAPLDATE modules into unique CAILIBs. If the PAPLDATE module included with Easytrieve Plus Report Generator is found first, and ALL31=YES, dynamic storage is allocated above 16 MB. If the PAPLDATE module included with PanAudit Plus is found first, and ALL31=NO, dynamic storage is allocated below 16 MB. If the PAPLDATE module included with PanAudit Plus is found first, and ALL31=YES, dynamic storage is allocated above 16 MB, and a S0C4 abend will occur.