Endevor getting errors "SMGR041E" "SMGR064E" "BASE FILE PREMATURE END-OF-FILE"
search cancel

Endevor getting errors "SMGR041E" "SMGR064E" "BASE FILE PREMATURE END-OF-FILE"

book

Article ID: 141150

calendar_today

Updated On:

Products

Endevor Endevor Natural Integration Endevor - ECLIPSE Plugin Endevor - Enterprise Workbench

Issue/Introduction

 Accessing Element getting error reading the BASE file. 

           15:43:18  C1G0202I  ACTION #1 / STMT #2
           15:43:18  C1G0203I     ADD      ELEMENT <element>
           15:43:18  C1G0205I        FROM DSNAME:  <level1>.<level2>.<cntl>
15:43:18 C1G0204I TO ENVIRONMENT: ENV1 SYSTEM: SYS1 SUBSYSTEM: SUB1 TYPE: COBOL STAGE ID: 1 15:43:18 C1G0232I OPTIONS: OVERRIDE SIGNOUT, UPDATE 15:43:18 C1G0232I CCID: MY CCID 15:43:18 C1G0232I COMMENT: This is my comment 15:43:20 C1G0265I PROCESSOR GROUP COBOL FOR THIS ELEMENT WAS OBTAINED FROM PRIMARY ELEMENT RECORD 15:43:24 SMGR041E BASE FILE PREMATURE END-OF-FILE 15:43:24 SMGR041E BASE FILE PREMATURE END-OF-FILE 15:43:24 C1G0000I DATA SET <level1>.<level2>.<base> 15:43:24 C1G0000I MEMBER <element> 15:43:24 SMGR064E READ I/O ERROR FROM READRUTN - DDN=SYS00011 15:43:24 C1G0277I UPDATE PROCESSING TERMINATED BECAUSE OF THE PREVIOUS ERROR 15:43:24 C1G0200I ELEMENT ACTION REQUEST PROCESSING COMPLETED, HIGHEST ENDEVOR RC WAS 0012

Environment

All supported releases

Resolution

The errors are issued because the BASE ELEMENT member is corrupted.  There are 2 options that can be used to restore the base member: 

Option 1:  Requires that the site has an UNLOAD/RELOAD/VALIDATE (PGM=C1BM5000) backup member. 

  • Prior to doing anything take backups both Unload and backup the components. 
  • Change the delete processor group's DELETE processor to *NOPROC*.  This will delete the element and not the components. 
  • Then delete the element with the bad base member.  Expect a non-zero condition code.
  • Then unload the system, this will restore only the Elements that are older than the backup.  This would be only the bad element. 
  • Double check the output. 
  • Change back the processor groups delete processor. 

Option 2:  Requires a full pack backup (like DFDSS) 

  • Restore the base library to a temporary dataset name
  • Examine the base member's footprint in the temporary file 
  • Ensure that footprint of the member to be restored is the same as the base member 
  • Copy the member to the base library  (Note - The base member must be an exact match)