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

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: 2455
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: 8797
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: 2455
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 Member


Joined: 31 Dec 2009
Posts: 580
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top