View previous topic :: View next topic
|
Author |
Message |
chenchi
New User
Joined: 10 Jun 2004 Posts: 12 Location: Bangalore,India
|
|
|
|
hi
1.if we don't specify 'block contains ' clause in fd section...what will happen
2.if we specify block contains zero what happens..
plz answer |
|
Back to top |
|
|
rick
New User
Joined: 18 Jun 2004 Posts: 59 Location: Chennai
|
|
|
|
Hi,
If u specify Block contains 0 in COBOL pgm the JCL decides the block size with the BLOCKSIZE parameter. |
|
Back to top |
|
|
sats456
New User
Joined: 29 May 2005 Posts: 12
|
|
|
|
Do you mean to say if we specify BLOCK CONTAINS 0 RECORDS in a COBOL program,the value specified in BLKSIZE part of DCB parameter from JCL will be picked up ??
If that is the case what is the point in specifying in COBOL pgm ? |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Quote: |
If that is the case what is the point in specifying in COBOL pgm ? |
Just for a reference. But it's not must. |
|
Back to top |
|
|
Aditya Bhardwaj Warnings : 1 New User
Joined: 02 Nov 2004 Posts: 18 Location: Noida, India
|
|
|
|
Hi Chenchi,
If we say BLOCK CONATAINS 0 RECORDS, then in that case, the most optimum BLOCK SIZE for that particular LRECL is decided by MVS and that particular BLOCKSIZE is allocated. IF you want to check it, just run a program with BLKSIZE SIZE 0 and then see the properties of the output file created, it will automatically have a BLKSIZE allocated.
And one more thing, there is a tool called BLKSIZE calculator, which is available, just give your LRECL and expected number of records in that file and it will provide U with the optimum number of BLKSIZE to be specifieed for that file. |
|
Back to top |
|
|
|