Suppose blksize parameter has been mentioned as 'A' in COBOL program for a dataset and 'B' in the JCL. And we are creating the dataset then what will be the blocksize of the dataset - 'B' or 'A' ? And what will happen if we mention the blocsize in COBOL program but as '0' in JCL-- Will the system go for creating an optimal blocksized dataset or will it take blocksize from the COBOL program?
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
I suspect that you have received no replies because most folks expect you to test this on your system and post any questions you have about what happens.
Along the line of your question, it is a better practice to remove block size specifications from the cobol code as well as the jcl. You might talk with your storage administrators and ask what is preferred on your system.
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
Under what conditions would BLKSIZE=0 not work correctly? What should we be using in place of BLKSIZE=0 to have the system calculate the best block size to use? I have been using it for years at several clients. If there is something better to use please let me know.
Joined: 11 Jun 2007 Posts: 80 Location: Columbus, Ohio
In most shops I've been in ... omitting the BLKSIZE parameter altogether will allow the system to calculate the optimal block size for your dataset. Not sure whether that is an affectation of SMS or not ... since I'm not a sysprog.