Page 1 of 1

variable blocked file

PostPosted: Tue Oct 06, 2009 11:10 am
by jash
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.








Thanks In advance.

Re: variable blocked file

PostPosted: Tue Oct 06, 2009 11:50 am
by Anuj Dhawan
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.

Re: variable blocked file

PostPosted: Tue Oct 06, 2009 10:42 pm
by jash
Then what is the difference between V and VB in RECORDING MODE.

Re: variable blocked file

PostPosted: Wed Oct 07, 2009 12:07 am
by Anuj Dhawan
One is COBOL term and other is JCL term to make the system understand that programmer is dealing with variable block files.

Re: variable blocked file

PostPosted: Wed Oct 07, 2009 12:11 am
by Anuj Dhawan
And where did you read about "RECORDING MODE IS VB", as you ask for
difference between V and VB in RECORDING MODE.