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

How to find KSDS Block Size and No. of records.


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

New User


Joined: 29 Feb 2008
Posts: 49
Location: Pune

PostPosted: Thu Mar 13, 2008 2:57 pm
Reply with quote

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

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Mar 13, 2008 4:14 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 13, 2008 4:14 pm
Reply with quote

A KSDS does not have a BLKSIZE and LISTCAT will tell you the number of records.
Back to top
View user's profile Send private message
abdul.faras

New User


Joined: 29 Feb 2008
Posts: 49
Location: Pune

PostPosted: Thu Mar 13, 2008 4:22 pm
Reply with quote

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

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Mar 13, 2008 4:24 pm
Reply with quote

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

New User


Joined: 29 Feb 2008
Posts: 49
Location: Pune

PostPosted: Thu Mar 13, 2008 4:52 pm
Reply with quote

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

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Mar 13, 2008 8:28 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 13, 2008 8:51 pm
Reply with quote

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

New User


Joined: 29 Feb 2008
Posts: 49
Location: Pune

PostPosted: Fri Mar 14, 2008 11:00 am
Reply with quote

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
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 Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top