variable blocked file



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

variable blocked file

Postby jash » Tue Oct 06, 2009 11:10 am

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.
jash
 
Posts: 12
Joined: Sun Oct 04, 2009 12:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: variable blocked file

Postby Anuj Dhawan » Tue Oct 06, 2009 11:50 am

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.
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: variable blocked file

Postby jash » Tue Oct 06, 2009 10:42 pm

Then what is the difference between V and VB in RECORDING MODE.
jash
 
Posts: 12
Joined: Sun Oct 04, 2009 12:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: variable blocked file

Postby Anuj Dhawan » Wed Oct 07, 2009 12:07 am

One is COBOL term and other is JCL term to make the system understand that programmer is dealing with variable block files.
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: variable blocked file

Postby Anuj Dhawan » Wed Oct 07, 2009 12:11 am

And where did you read about "RECORDING MODE IS VB", as you ask for
difference between V and VB in RECORDING MODE.
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post