Does anyone know of a way to retrieve the record length in a Cobol program (Windows)?
Page 1 / 1
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’.
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.
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.
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.
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.