Skip to main content

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

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’.

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.


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.

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.