Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to calculate file size

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to calculate file size
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: 1868
Location: UK

PostPosted: Wed Jul 24, 2013 1:13 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 24, 2013 1:58 pm    Post subject:
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: 1868
Location: UK

PostPosted: Wed Jul 24, 2013 2:13 pm    Post subject:
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: 445
Location: London

PostPosted: Wed Jul 24, 2013 5:21 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us