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

SPACE parameter - BLK and CYL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
drajagopal

New User


Joined: 20 Jun 2006
Posts: 9

PostPosted: Tue Jun 20, 2006 3:55 pm
Reply with quote

Hi,

i would like to know the relatioship b/w blocks and cylinders.
that is, how many blocks makes one cylinder?
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Tue Jun 20, 2006 6:27 pm
Reply with quote

Blocks can be any size as defined by the analyst, so there is no set number of blocks to a cylinder:

1 cylinder = 15 tracks
1 track = approximately 56,000 bytes
1/2 track = approximately 28,000 bytes

For efficiency, records should be blocked, usually half track blocking.
RECFM=FB, LRECL=80,BLKSIZE=27920
You can write 349 80 byte records in a 1/2 track, 698 80 byte records in a full track. In this case, there are two blocks to a track, 30 blocks to a cylinder.

Consider RECFM=FB,LRECL=80, BLKSIZE=800
You can write 10 80 byte records in each block, approximately 70 blocks per full track. In this case, there are 140 blocks per track, 2100 blocks per cylinder.

So a block is a segment of space on a track that will contain one or more records. In between each block is a small gap. The more blocks on track, the more gaps you have, and these gaps can use up space. If you code BLKSIZE=0 on your output dataset, the system will calculate and use the most efficient blocksize, usually half track blocking.
Back to top
View user's profile Send private message
drajagopal

New User


Joined: 20 Jun 2006
Posts: 9

PostPosted: Wed Jun 21, 2006 2:05 pm
Reply with quote

Thank u.

I guess in the second example u gave , the no: of blocks is 1050 .
Back to top
View user's profile Send private message
drajagopal

New User


Joined: 20 Jun 2006
Posts: 9

PostPosted: Wed Jun 21, 2006 2:09 pm
Reply with quote

Also just a clarification .........
is 1 cyn = 15 trks or 24 trks? someone told me its 24?
Back to top
View user's profile Send private message
prashantshinde

New User


Joined: 25 Nov 2005
Posts: 49
Location: Pune

PostPosted: Wed Jun 21, 2006 3:08 pm
Reply with quote

1 Cylinder =15 tracks
Largest blksize = 32760 bytes
A3390-n DASD storage device has capacity of 56,664 bytes per track out of which 55,996 bytes are used by application programs and rest are system specific.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
Search our Forums:

Back to Top