View previous topic :: View next topic
|
Author |
Message |
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Hi,
In the FD part, we specify the word BLOCK CONTAINS XX RECORDS.
Can anyone please let me know what actually this means.
Basically I have to read from a table into a flat file. The table has a max of 200 entries. So shall I Mention
BLOCK CONTAINS 200 RECORDS??? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Swapna,
Let the block size determine at run time. |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
So, I am required not to specify anything at COBOL as well as the JCL?? |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
nope, not specified is not the same as specify 0.
code
Code: |
BLOCK CONTAINS 0 RECORDS. |
...
search about it. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
In COBOL, you establish the size of a physical record with the BLOCK CONTAINS clause. The performance would be better with larger blocks.
Did a search and found this.
[url]
ibmmainframes.com/about705.html[/url] |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Aaru,
Quote: |
In COBOL, you establish the size of a physical record with the BLOCK CONTAINS clause. The performance would be better with larger blocks. |
Where did you get this? Is this your personnel view. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Aaru,
Did you read this?
Quote: |
If you set the block size explicitly in the BLOCK CONTAINS clause, it must not be greater than the maximum block size for the device. The block size set for a format-F file must be an integral multiple of the record length. |
Quote: |
We recommend that to maximize performance, you not explicitly set the block size for a blocked file in your COBOL source program. For new blocked data sets, it is simpler to allow z/OS to supply a system-determined block size. To use this feature, follow these guidelines:
Code BLOCK CONTAINS 0 in your source program.
Do not code RECORD CONTAINS 0 in your source program.
Do not code a BLKSIZE value in the JCL DD statement.
on the device at run time. If you fix the block size, assuming the |
|
|
Back to top |
|
|
|