MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to calculate avg recordsize manualy

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
vino_dh
Beginner


Joined: 03 Aug 2006
Posts: 4
Topics: 1

PostPosted: Thu Aug 03, 2006 1:37 pm    Post subject: How to calculate avg recordsize manualy Reply with quote

Hi,
can anyone tell me how to calculate the avg recordsize in vsam cluster manually.
keys(5,2)
max recordsize is 55
what will be the avg recordsize - in case fo variable recordsize.

Thanx
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Aug 03, 2006 2:20 pm    Post subject: Reply with quote

vino_dh,

Avg Recordsize? It depends on your data. Since your key is 5 bytes long , you have minimum length of 6( 2 offset) and max length of 55. So if you need the average then you need to calculate the total length of all records and divide it by the number of records.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vino_dh
Beginner


Joined: 03 Aug 2006
Posts: 4
Topics: 1

PostPosted: Fri Aug 04, 2006 1:11 am    Post subject: Reply with quote

Hi,
are you sure about your answer. after creating cluster we will pass the data. before creating cluster we wont know how many records we are going to enter.
can u clear my doubt.

Thanx
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Fri Aug 04, 2006 5:26 am    Post subject: Reply with quote

vino_dh,

Look at Kolusu's Profile and he is the moderator of this site.If you look at to his replies i hope you will not ask Very Happy
Quote:

are you sure about your answer.

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Aug 04, 2006 5:33 am    Post subject: Reply with quote

Quote:

are you sure about your answer. after creating cluster we will pass the data. before creating cluster we wont know how many records we are going to enter.


vinu_dh,

If you read my answer carefully once again you will see what I meant. The AVG record size depends on your data.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vino_dh
Beginner


Joined: 03 Aug 2006
Posts: 4
Topics: 1

PostPosted: Fri Aug 04, 2006 12:21 pm    Post subject: Reply with quote

Hi,
I know kolusu is a genius. But what I felt is since he is concentrating on complicated coding he never get a chance to concentrate on this kind of minor doubt. Thanx for your immediate reply.

Thanx
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Aug 04, 2006 1:44 pm    Post subject: Reply with quote

vino,
Are you referring to the AVGREC parameter used in allocating files?
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
vino_dh
Beginner


Joined: 03 Aug 2006
Posts: 4
Topics: 1

PostPosted: Sat Aug 05, 2006 6:51 am    Post subject: Reply with quote

Hi Dennis,
Yes.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Sat Aug 05, 2006 4:05 pm    Post subject: Reply with quote

Bill Dennis wrote:
vino,
Are you referring to the AVGREC parameter used in allocating files?


vino_dh wrote:
Hi Dennis,
Yes.


hmm your first Post refers to VSAM cluster definition and I assumed that your question was related to the RECORDSIZE(average maximum) parameter

Now you say it is the JCL AVGREC parameter?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Aug 07, 2006 8:44 am    Post subject: Reply with quote

AVGREC is used to estimate SPACE requirements and is not directly related to logical records in the file. Perhaps you can tell us what you will do with the average record size once you know what it is?
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group