MAINFRAME - TIP OF THE DAY :
When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file

1000
1005
1005
92008092500003 --> Trailer count should be 3 as per the condition in JCL

The trailer should be not generated in the JCL, it should be used as it is and only the count should be changed as per the condition in JCL, since there are lots of information available in trailer which is generated by the program.

I used the following JCL, but it shows syntax error on OVERLAY..... that the COUNT function is not possible with OVERLAY