IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

If we specify block contains zero what happens


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chenchi

New User


Joined: 10 Jun 2004
Posts: 12
Location: Bangalore,India

PostPosted: Fri Jun 18, 2004 3:51 pm
Reply with quote

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
View user's profile Send private message
rick

New User


Joined: 18 Jun 2004
Posts: 59
Location: Chennai

PostPosted: Fri Jun 18, 2004 4:36 pm
Reply with quote

Hi,


If u specify Block contains 0 in COBOL pgm the JCL decides the block size with the BLOCKSIZE parameter.
Back to top
View user's profile Send private message
sats456

New User


Joined: 29 May 2005
Posts: 12

PostPosted: Sun Jun 05, 2005 12:30 am
Reply with quote

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
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sun Jun 05, 2005 12:38 am
Reply with quote

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
View user's profile Send private message
Aditya Bhardwaj
Warnings : 1

New User


Joined: 02 Nov 2004
Posts: 18
Location: Noida, India

PostPosted: Mon Jun 06, 2005 1:51 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts I need a 4 lines block where substrin... DFSORT/ICETOOL 3
No new posts How to remove block of duplicates DFSORT/ICETOOL 8
No new posts Try to understand IMS control block IMS DB/DC 0
No new posts DB2 Block insert (-803 Error Handling) COBOL Programming 5
No new posts mapping PLI structure to assembler co... PL/I & Assembler 3
Search our Forums:

Back to Top