Skip to main content

Compilation Error in VRECGEN2

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

VRECGEN2 is an Mainframe Express utility that reads an uploaded PC file in which the record length is stored with each record, and writes a mainframe file with variable length records.

It can be used for files containing variable-length records in case MFA (Mainframe Access Drag&Drop) cannot be used for Upload (e.g. at VSE operating systems).

Compiling VRECGEN2.cbl on Mainframe may cause the following error:

File "OUT-FILE" was found in an "APPLY WRITE-ONLY" clause, but did not have physical "SEQUENTIAL" organization, variable-length records or a "BLOCK CONTAINS" clause.  File "OUT-FILE" was discarded from the "APPLY WRITE-ONLY" clause.

Resolution:

The WRITE-ONLY clause affects performance only, this clause does not impact the resulting output file.

So please commment this line out and recompile.

Old KB# 2447

#EnterpriseDeveloper
#MFDS