Easytrieve Report Generator : S0C4 abend occurs in the Easytrieve program, but if the same program is rerun without modification, the program finishes normally.
search cancel

Easytrieve Report Generator : S0C4 abend occurs in the Easytrieve program, but if the same program is rerun without modification, the program finishes normally.

book

Article ID: 192109

calendar_today

Updated On:

Products

Easytrieve Report Generator

Issue/Introduction

A S0C4 abend sometime occurs in a Easytrieve program. However, if the same program is just rerun without modification, the program finishes normally without any problem. Why? 

Environment

Easytrieve Plus Report Generator, Release 6.4

Resolution

If the program has no incorrect code, such as:
   A record length is wrong.
   Length of a defined field is wrong (It exceeds the record length, etc.).
   Length of a arrays field wrong. Subscript for a arrays field is wrong. etc.)

please check that the allocation of the EZTVFM is specified in the execution JCL.
Example:
     //EZTVFM DD UNIT=SYSDA,SPACE=(4096,(100,100))

The space amount should be increased if necessary. That will change depending on the target program. 

The EZTVFM is used as working file to run an Easytrieve program.  
For example :
   The work file at the compilation.
   The intermediate file when SEQUENCE is specified in a program.
   The intermediate file when multiple reports are defined in a program.
   The definition files that VIRTUAL keyword are specified to.   
etc..

If the amount of the EZTVFM is insufficient, a S0C4 abend can occur.