Below is the my requirement:
I need to find the record length of my output since i need to declare in the FD section.
My output record length may vary from input record length.Input and output are VB.
For example
FILE SECTION.
FD DATA-FILE
RECORDING MODE IS V
RECORD IS VARYING FROM 1 TO 32696
DEPENDING ON WS-LENGTH.
01 INPUT-REC PIC X(32696).
FD OUTPUT-FILE
RECORDING MODE IS V
RECORD IS VARYING FROM 1 TO 32696
DEPENDING ON WS-LENGTH-OUT.
01 OUTPUT-REC PIC X(32696).
FD DATA-FILE
RECORDING MODE IS V
RECORD IS VARYING FROM 1 TO 32696
DEPENDING ON WS-LENGTH.
01 INPUT-REC PIC X(32696).
FD OUTPUT-FILE
RECORDING MODE IS V
RECORD IS VARYING FROM 1 TO 32696
DEPENDING ON WS-LENGTH-OUT.
01 OUTPUT-REC PIC X(32696).
The working storage variable WS-LENGTH-OUT should be calculated from my output.
How can i calculate it?