IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

how to calculate file size


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

New User


Joined: 19 Oct 2007
Posts: 37
Location: chennai

PostPosted: Wed Jul 24, 2013 1:05 pm
Reply with quote

Hi,

I need to know how to calculate file size for FB or VB file.could anyone please let me know

Regards
Karthik
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2429
Location: Hampshire, UK

PostPosted: Wed Jul 24, 2013 1:13 pm
Reply with quote

You will need to do a lot of explaining! File size - number of records? number of bytes? nmumber of blocks? number of tracks? number of cylinders? number of tapes? File can vary in size, record-wise, from zero to millions of records. same sort of thing for the othe other criteria.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jul 24, 2013 1:58 pm
Reply with quote

And of course for DASD files the size depends on the DASD geometry

Lets start at the beginning, and assume that your are using 3390 geometry.
What is the optimum BLKSIZE for this device type. Google should tell you.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2429
Location: Hampshire, UK

PostPosted: Wed Jul 24, 2013 2:13 pm
Reply with quote

Of course, you could always follow the forum rules and search:
a previous topic
And after 3 months in a technical role you should know how to do this - not wait for 6 years. This is a beginner's question. why not join the this sites sister forum for beginners?
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 488
Location: London

PostPosted: Wed Jul 24, 2013 5:21 pm
Reply with quote

LRECL x Number of records - is a rough rule of thumb for total bytes.

Another way is to view the file in 3.4 and get the number of tracks used, and assuming you're on 3390 DASD then multiply the number of tracks by 56664 (no of bytes per track). It's not 100% accurate but probably close enough. At least this way it shows what is actually used regardless of the BLKSIZE.

BLKSIZE can have a big effect on file size. If the fle is allocated using System Determined Blksize (SDB) by not specifying BLKSIZE or coding BLKSIZE=0 then it will get the most efficient half track BLKSIZE. But if someone has done something silly like creating a file with RECFM=FB,LRECL=80,BLKSIZE=80 then the file will be multiple time bigger than it needs to be due to most of it being 32 byte interblock gaps.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts COBOL VS SORT Utility for file format... COBOL Programming 6
No new posts How to find which file contains my se... DFSORT/ICETOOL 6
No new posts IGZ0035S THERE WAS AN UNSUCCESSFUL OP... COBOL Programming 3
No new posts Hex Value - vb file replace old date ... DFSORT/ICETOOL 14
No new posts Related to using a file in comparison JCL & VSAM 7

Back to Top