View previous topic :: View next topic
|
Author |
Message |
abdul.faras
New User
Joined: 29 Feb 2008 Posts: 49 Location: Pune
|
|
|
|
How to find KSDS Block Size and No. of records.
I need to find Block Size and No. of records in a VSAM KSDS File.
While creating the file, in JCL the BLKSIZE is =0, so system will decide the BLKSIZE for that. I need to find what exact BLKSIZE system assigned for the file.
I have tried searching it in FILEAID, it doesn't give any information regarding Blocksize or number of records the file contains. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Abdul,
Quote: |
While creating the file, in JCL the BLKSIZE is =0, so system will decide the BLKSIZE for that. I need to find what exact BLKSIZE system assigned for the file. |
Just wanted to see your vsam creation step. If you dont mind, post the job. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
A KSDS does not have a BLKSIZE and LISTCAT will tell you the number of records. |
|
Back to top |
|
|
abdul.faras
New User
Joined: 29 Feb 2008 Posts: 49 Location: Pune
|
|
|
|
murmohk1 wrote: |
Abdul,
Quote: |
While creating the file, in JCL the BLKSIZE is =0, so system will decide the BLKSIZE for that. I need to find what exact BLKSIZE system assigned for the file. |
Just wanted to see your vsam creation step. If you dont mind, post the job. |
Code: |
//KMC13C EXEC PGM=XXXXX,COND=(00,NE)
//KZZZZZ DD DSN=VMEDPAC.KUPRFMD,DISP=SHR
//KDDDDD DD DSN=BMEDPAC.IDCAMS.KMMRMWD,DISP=SHR,DCB=BUFNO=14
//KRRRRR DD DSN=BMEDPAC.KMC13CBC.KMMRMWD,
// DISP=(NEW,CATLG,DELETE),
// VOL=SER=&VOLSER,
// UNIT=&SYSDA,SPACE=(CYL,(2,1),RLSE),
// DCB=(RECFM=VB,LRECL=30284,BLKSIZE=0)
//CNTLRPT DD SYSOUT=&SYSRPT
//SYSOUT DD SYSOUT=&SYSMSG
//SYSDBOUT DD SYSOUT=&SYSMSG
//SYSUDUMP DD SYSOUT=&SYSMSG |
|
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Abdul,
Quote: |
//KRRRRR DD DSN=BMEDPAC.KMC13CBC.KMMRMWD,
// DISP=(NEW,CATLG,DELETE),
// VOL=SER=&VOLSER,
// UNIT=&SYSDA,SPACE=(CYL,(2,1),RLSE),
// DCB=(RECFM=VB,LRECL=30284,BLKSIZE=0) |
And what made you think that your o/p file is a vsam? |
|
Back to top |
|
|
abdul.faras
New User
Joined: 29 Feb 2008 Posts: 49 Location: Pune
|
|
|
|
murmohk1 wrote: |
Abdul,
Quote: |
//KRRRRR DD DSN=BMEDPAC.KMC13CBC.KMMRMWD,
// DISP=(NEW,CATLG,DELETE),
// VOL=SER=&VOLSER,
// UNIT=&SYSDA,SPACE=(CYL,(2,1),RLSE),
// DCB=(RECFM=VB,LRECL=30284,BLKSIZE=0) |
And what made you think that your o/p file is a vsam? |
Actually this step creates the flat file and then this flat file is reproed in to a KSDS.
For documentation perpose I need the BLKSIZE.
But I guess its given wrong in my old documents, as expat has mentioned KSDS does not have a BLKSIZE is right.
Correct me if I am wrong. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Abdul,
Quote: |
But I guess its given wrong in my old documents, |
Refer IBM documentation.
Quote: |
Correct me if I am wrong. |
Not required. You got it properly. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
For documentation perpose I need the BLKSIZE. |
Why do you need to know the BLKSIZE ?
It may vary depending on the architecture of the DASD that you may use, for 3380 the BLKSIZE will be different from 3390.
Let the system determine the optimum BLKSIZE for you, it is so much easier and efficient. |
|
Back to top |
|
|
abdul.faras
New User
Joined: 29 Feb 2008 Posts: 49 Location: Pune
|
|
|
|
Quote: |
Why do you need to know the BLKSIZE ? |
In the old documentation related to my project the BLKSIZE has been mentioned, due to which I got confused.
Thank you murmohk1 and expat for your replies. |
|
Back to top |
|
|
|