My input Flat file is created with different RL daily.
I want to calculate the record length of the Flat File in the JCL and drive the following steps based on the output.
On a day, the RL of the Flat file is 200.
My JCL should give the output as 200 and set the return code accordingly so that based on the return code i can conditionally execute the following steps.
I had tried with IDCAMS utility with LISTCAT in the SYSIN, but it do not give the record length of the file. The RL is provided by the INFO line command. Can we capture the output of the INFO command in a file as we can do with LISTCAT by following command in SYSIN: