Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
If we specify block contains zero what happens

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
chenchi

New User


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

PostPosted: Fri Jun 18, 2004 3:51 pm    Post subject: If we specify block contains zero what happens
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
References
rick

Moderator


Joined: 18 Jun 2004
Posts: 61
Location: Kuzhithurai

PostPosted: Fri Jun 18, 2004 4:36 pm    Post subject:
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    Post subject: Re: If we specify block contains zero what happens
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: 624
Location: Bangalore

PostPosted: Sun Jun 05, 2005 12:38 am    Post subject:
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    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1