Skip to main content

Retrieving Record Length in Cobol

  • October 28, 2020
  • 4 replies
  • 0 views

Jeffery Judd

Does anyone know of a way to retrieve the record length in a Cobol program (Windows)?

4 replies

Jaap Voerman
Forum|alt.badge.img+1
  • Participating Frequently
  • October 28, 2020

Does anyone know of a way to retrieve the record length in a Cobol program (Windows)?

You mean, within a cobolprogram? Use c$system with the command ,vutil32 -info filenaam >outputinfo. Then read the outputinfo and search for the line ‘recordsize’.

Jeffery Judd
  • Author
  • New Participant
  • October 29, 2020
You mean, within a cobolprogram? Use c$system with the command ,vutil32 -info filenaam >outputinfo. Then read the outputinfo and search for the line ‘recordsize’.

That was the first thing I  tried, but does not create the output file.


Jaap Voerman
Forum|alt.badge.img+1
  • Participating Frequently
  • October 29, 2020

That was the first thing I  tried, but does not create the output file.

As example: naam outputfile: GO4ITVutil.TXT.
First, deleted the file if present..
Create the path and name of the file: D:\\CSHANP\\GO4IT\\SUBBK\\B-DC06
Create the command with a string: "C:\\Program Files\\Micro Focus\\Extend 10.3.0\\AcuGT\\bin\\Vutil32.exe" -info -k D:\\CSHANP\\GO4IT\\SUBBK\\B-DC06 >GO4ITVutil.TXT
*(PROGRAMMA UITVOEREN)
COMPUTE H05-PARAM = CSYS-HIDDEN CSYS-SHELL.
CALL "C$SYSTEM" USING PARAM-A-SYSO
H05-PARAM
GIVING STATUS-SYSO.

Jaap Voerman
Forum|alt.badge.img+1
  • Participating Frequently
  • October 29, 2020
As example: naam outputfile: GO4ITVutil.TXT.
First, deleted the file if present..
Create the path and name of the file: D:\\CSHANP\\GO4IT\\SUBBK\\B-DC06
Create the command with a string: "C:\\Program Files\\Micro Focus\\Extend 10.3.0\\AcuGT\\bin\\Vutil32.exe" -info -k D:\\CSHANP\\GO4IT\\SUBBK\\B-DC06 >GO4ITVutil.TXT
*(PROGRAMMA UITVOEREN)
COMPUTE H05-PARAM = CSYS-HIDDEN CSYS-SHELL.
CALL "C$SYSTEM" USING PARAM-A-SYSO
H05-PARAM
GIVING STATUS-SYSO.

Forgot the example.