DBSQLPR gets RC 2020 after upgrading Datacom to 15.0
Article ID: 129947
CA DatacomCA DATACOM - ADCA CISCA Common Services for z/OSCA 90s ServicesCA Database Management Solutions for DB2 for z/OSCA Common Product Services ComponentCA Common ServicesCA Datacom/ADCA ecoMeter Server Component FOCCA Easytrieve Report Generator for Common ServicesCA Infocai MaintenanceCA IPCUnicenter CA-JCLCheck Common ComponentCA Mainframe VM Product ManagerCA Chorus Software ManagerCA On Demand PortalCA Service Desk Manager - Unified Self ServiceCA PAM Client for Linux for zSeriesCA Mainframe Connector for Linux on System zCA Graphical Management InterfaceCA Web Administrator for Top SecretCA CA- Xpertware
An SQL query is executed via DBSQLPR and the selected rows are saved on an z/OS dataset with LRECL 80 (allocated to STDOUT dataset). The job ran fine when running Datacom 14.0 but after the upgrade to 15.0, it gets RC 2020.
Datacom 15.0 corrected some DBSQLPR errors to file management, so some functions have changed.
CA Datacom 15.0 and above
The problem occurs when the STDOUT dataset has a LRECL=121 or less. If so, a PRTWIDTH option must be specified for DBSQLPR. The value of this option must match the LRECL of the STDOUT dataset. SQL 15.0 APAR ST07726 (or SQL 15.1 ST07727) must be applied too.
A quick workaround: If adding any of the following options: NOECHO NOPAGEHDR NOPAGES it works fine on 15.0 too.