Ron, I'm not sure I understand your advice.  Could you explain the
difference between specifying BLKSIZE=0 and coding BLKSIZE=0?
TIA,
Greg Shirey
Ben E. Keith Company

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED]
Behalf Of Ron and Jenny Hawkins
Sent: Wednesday, February 15, 2006 9:26 AM
<snip>
One of my soap boxes - best practice for SDB is not to specify BLKSIZE=0, it
is to specify the DCB and omit the BLKSIZE, or specify the DCB and code
BLKSIZE=0.
I don't quite understand Ron either.

In JCL, coding/specifying BLKSIZE=0 and omitting BLKSIZE altogether are equivalent (unless a blocksize comes from a data class, in which case BLKSIZE=0 will over ride it). If you also specify the RECFM, LRECL, and DSORG=PS or PO in JCL or in the data class, then SDB will be invoked to calculate a blocksize.

If and only if SDB was invoked at allocation time, if you OPEN with a DCB specifying a different LRECL and RECFM and don't specify BLKSIZE (or specify it as zero) in your program, SDB will recalculate the blocksize at OPEN time.
--
Bruce A. Black
Senior Software Developer for FDR
Innovation Data Processing 973-890-7300
personal: [EMAIL PROTECTED]
sales info: [EMAIL PROTECTED]
tech support: [EMAIL PROTECTED]
web: www.innovationdp.fdr.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to