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

calculation for space in cylinder


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

New User


Joined: 24 Oct 2006
Posts: 32
Location: India

PostPosted: Tue Jun 05, 2007 12:24 pm
Reply with quote

Hi,

I need 159876 bytes required for a dataset,How i can represent it in JCL space parameter in CYL

space (CYL(?,?),,)

Is there any calculation avaliable.

Thanks
Baskaran
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jun 05, 2007 12:43 pm
Reply with quote

Quote:
I need 159876 bytes required for a dataset,How i can represent it in JCL space parameter in CYL

How did you calculate this figure ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 05, 2007 6:08 pm
Reply with quote

Hello,

What kind of mainframe dataset will you define? Are you aware of different mainframe file types?

Your number sounds like a windows or unix file length.
Back to top
View user's profile Send private message
Baskaran
Warnings : 1

New User


Joined: 24 Oct 2006
Posts: 32
Location: India

PostPosted: Wed Jun 06, 2007 10:44 am
Reply with quote

Hi,

This is a sequential file,this will be used as unload dataset for REORG job for a DB2 table.

We calculated this number in bytes using formulas avaialble for us from IBM utility guids.

Results of the formula suggest us,this file requires 159876 bytes,Now how to specify it in SPACE parameter.

SPACE=(cyl(?,?)

Is there any conversion formula avaliable.

Thanks
Baskaran
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jun 06, 2007 12:07 pm
Reply with quote

What is the LRECL & RECFM of the dataset ???

As a quick guide ..............

159876 / 27998 = 5.71026501892992 blocks of data @ 27998 (half track blocking)

5.71026501892992 = 6 blocks used

As they are half track blocks, 6 / 2 = 3 tracks used

The above assumes that all available data is used within the blocks, but in most cases this is not true - so add another 2 tracks for contingency and this totals 5 tracks. This is 0.333333333 cylinders, which gets rounded up to 1 cylinder.

So, how big was the original DB2 table ???
Back to top
View user's profile Send private message
Baskaran
Warnings : 1

New User


Joined: 24 Oct 2006
Posts: 32
Location: India

PostPosted: Thu Jun 07, 2007 2:36 pm
Reply with quote

Hi ,

My total space required for unload dataset is 44059546 KB.So how i would represent it in space =(cyl(?,?) ...


Thanks
Baskaran
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jun 07, 2007 2:52 pm
Reply with quote

I have given you a quick method to obtain a reasonable estimate on your previous post, so all you have to do is to apply that formula to the new number of bytes quoted.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 07, 2007 2:55 pm
Reply with quote

Hello,

Use the method Expat explained earlier.

Calculate how many blocks you need by dividing by 27998 (still using 1/2 track blocking). Round up to the next full block.

Divide the block count by 2 giving tracks (round up).

Next, an oversimplification, but divide the track count by 15 giving cyls (round up and add 10 or 15%). This would depend on how many non-database bytes were written to the unload file (if any).

That should give you enough space to hold the data.

You may want to look at the documentation for whatever you use for the unload as often that documentation provides space calculation info.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts Allocated space calculation from DCOL... PL/I & Assembler 3
No new posts split a name based on space in ASM PL/I & Assembler 9
Search our Forums:

Back to Top