Error: fwrite() failed with errorCode 0xb370004 on z/OS Agent
search cancel

Error: fwrite() failed with errorCode 0xb370004 on z/OS Agent

book

Article ID: 449096

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

When performing a File Transfer (JOBF) to a z/OS target, the transfer fails when the destination dataset runs out of space (B37 abend). The z/OS Agent log shows thousands of duplicate error entries within a few milliseconds:

Error: //DD:####: fwrite() failed; EDC5065I A write system error was detected.; errno=65 errno2=0xc04a001d last_op=151 errorCode=0xb370004Error: //DD:####: fwrite() failed; EDC5113I Bad file descriptor.; errno=113 errno2=0xc01e0005 last_op=151 errorCode=0xb370004

 

The Agent continues to read the input file until the end and repeatedly attempts to write, rather than terminating the transfer immediately upon the first fatal error.

Environment

  • Product: Automic Automation
  • Component: z/OS Agent (MVS)
  • Version: 24.4.4

Cause

This has been confirmed to be a defect in the z/OS Agent that causes it to incorrectly retry fwrite() operations after a non-recoverable z/OS I/O error (SB37).

Resolution

This issue is tracked via DE209291. We will target a fix in a future release. Expected future releases are as follows:

  • 24.4.6: Anticipated end of Sept. 2026
  • 26.1.0: Anticipated end of Sept. 2026

 

To be notified of updates to this issue, subscribe to this article by following the steps in Subscribe to a Broadcom knowledge article by article or product