Hello friends i have variable blocked file i want to read it .Anybody kindly can tell me how to code in FILE CONTROL section and FILE SECTION and PROCEDURE DIVISION.
Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, BLOCK CONTAINS 0. Do not code the 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4.
When you tried it what happened? Did you get IGZ0201W message telling that a LRECL=x,RECFM=VB file did not fit FD description.