MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to convert cylinders to megabytes ??
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Fri May 04, 2007 3:08 am    Post subject: how to convert cylinders to megabytes ?? Reply with quote

I like to know, how to convert cylinders to megabytes
and Track to Megabyte conversion?



Code:

XXSORTOUT  DD DSN=DEAA11A.SWARS(+1),           
XX            DISP=(NEW,CATLG,CATLG),                   
XX            SPACE=(CYL,(2500,500),RLSE),VOL=(,,,10), 
XX            UNIT=SYSDA,                               
XX            MGMTCLAS=MC0030,                         
XX            DCB=(PSDSCB,DSORG=PS,RECFM=VB,LRECL=2004)


Data Set:   DEAA11A.SWARS                                     
 On Volume:  PNH002                                                             
                                                                               
         DCB Attributes: Dsorg: PS  Recfm= VB  Lrecl= 2004  Blksize= 27998     
                                                                               
         Created By: UNKNOWN  on 07123                Management Class: MC0030 
 Last Referenced By: IBMOSVS2 on 07123                      Data Class: DCSTD   
   Last Modified On:                                     Storage Class: SCPRIME



   Tracks Allocated: 60000  Cyls: 4000             
        Tracks Used: 60000  Cyls: 4000   100%       
     Nbr Of Extents: 6                             
    Secondary Space: 500 Cyls     



Here, I have coded RLSE parameter for DEAA11A.SWARS but still it shows 100% used.
How CYL,(2500,500) is shown as Tracks Used: 60000 Cyls: 4000

Any help is greatly appreciated!!
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri May 04, 2007 3:19 am    Post subject: Reply with quote

Quote:
I like to know, how to convert cylinders to megabytes
and Track to Megabyte conversion?

I think I see the logic behind your request, but, the DASD allocation routines will convert whatever space allocation you have specified, records, Kb, Mb into either cylinder or track allocations. Personally I never bother.

Quote:
Here, I have coded RLSE parameter for DEAA11A.SWARS but still it shows 100% used.
How CYL,(2500,500) is shown as Tracks Used: 60000 Cyls: 4000

If you think about it, it would show 100% used. You have specified via RLSE that any unused space is released, so if all of the allocated space is being used it would be 100%.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri May 04, 2007 3:21 am    Post subject: Reply with quote

If you use RLSE all unused space ie released therefore what is left allocated is 100% used - no wasted space. you need the 3390 ref card or similar to find out how many records of that LRECL fit on a track and work from there.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri May 04, 2007 3:40 am    Post subject: Reply with quote

Interesting JCL code too ..............
Code:

XXSORTOUT  DD DSN=DEAA11A.SWARS(+1),           
XX            DISP=(NEW,CATLG,CATLG),                   
XX            SPACE=(CYL,(2500,500),RLSE),VOL=(,,,10), 
XX            UNIT=SYSDA,                               
XX            MGMTCLAS=MC0030,                         
XX            DCB=(PSDSCB,DSORG=PS,RECFM=VB,LRECL=2004)

If you storage group have set up SMS properly, there is no longer a need to code JCL in the prehistoric manner.

I would have coded ...
Code:

XXSORTOUT  DD DSN=DEAA11A.SWARS(+1),           
XX            DISP=(NEW,CATLG,CATLG),                   
XX            SPACE=(CYL,(2500,500),RLSE),VOL=(,,,10), 
XX            RECFM=VB,LRECL=2004

If SMS assigns a DATACLAS to EVERY dataset, be it SMS managed or not, DASD or tape, then there is no need to code a model or pattern DSCB. What are the attributes of this model, if they are equally as archaic then maybe the BLKSIZE would be LRECL+4 which would waste a lot of DASD space.

RECFM and LRECL are parameters in their own right and no longer need to be coded as sub parameters of the DCB field.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Fri May 04, 2007 4:38 am    Post subject: Reply with quote

Thanks for the reponse.

Quote:

RECFM and LRECL are parameters in their own right and no longer need to be coded as sub parameters of the DCB field.

expat, do you mean the DCB parameters are not required.

Quote:

BLKSIZE would be LRECL+4 which would waste a lot of DASD space.


I have not coded BLKSIZE, so it is SMS managed. Sorry I could not get you.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri May 04, 2007 4:56 am    Post subject: Reply with quote

If you look at what I would have coded you can see that I did not include DCB=

As I said, IF your SMS environment is set up correctly then you do not need the model DSCB in your JCL.

The model or pattern DSCB that you have specified may have an inefficient blocksize coded, and because you had coded DCB=(PSDSCB the blocksize used for your dataset would be the same as that of PSDSCB.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri May 04, 2007 4:58 am    Post subject: Reply with quote

Quote:

do you mean the DCB parameters are not required

Yes - as per the manual. For several years now (since the mid 90s?) LRECL, RECFM and BLKSIZE (and probably others) are stand-alone parameters i.e. they do not need to be coded as sub-parameters of DCB
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12358
Topics: 75
Location: San Jose

PostPosted: Fri May 04, 2007 8:51 am    Post subject: Reply with quote

A 3390-n device has a capacity of 56,664 bytes per track,of which 55,996 bytes are accessible by applications programmers. And 1 cylinder is 15 tracks.

So let us take the accessible bytes in a track which is 55,996.
Code:

1 Cylinder = 55,996 * 15  =  839,940 bytes.

so 1000 cylinders = 839,940 * 1000   

1 Megabyte =  1,048,576 (2 to the 20th power) bytes.

1000 cylinders = (839,940 * 1000 ) / 1,048,576  = 801.029 MB

1 terabyte =  2 to the 40th power or approximately a thousand billion bytes (that is, a thousand gigabytes).

1000 cylinders = (839,940 * 1000 ) / (1,048,576 * 1,048,576 )  = .000763 Terabytes

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Fri May 04, 2007 8:53 am    Post subject: Reply with quote

Thanks a ton.

Can anyone help me with cylinder/track to Megabyte conversion.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri May 04, 2007 8:58 am    Post subject: Reply with quote

Yeah - Kolusu has just posted it
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Fri May 04, 2007 9:16 am    Post subject: Reply with quote

Disk space is measured in cylinders for CMS, in megabytes for UNIX, and in tracks for MVS. For an approximate conversion between cylinders and megabytes, use the formula "1 cylinder = 600 KB" (1 KB = 1024 bytes, 1024 KB = 1 MB). For conversion between cylinders and tracks, use the formula "1 cylinder = 15 tracks".

The megabyte formula will actually provide more UNIX disk space than needed. The true number of bytes per cylinder varies as a result of arbitrary choices made by you when creating the files on CMS or when formatting the minidisk.

The following table lists some representative disk quotas in cylinders and in megabytes

1 cyl = 0.6 MB --- CMS default
5 cyls = 3 MB
10 cyls = 6 MB
17 cyls = 10 MB --- UNIX default
50 cyls = 29 MB
100 cyls = 59 MB
171 cyls = 100 MB
341 cyls = 200 MB

Here I got it from IMB website, still I am not sure what to apply for MVS. Any comments...
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12358
Topics: 75
Location: San Jose

PostPosted: Fri May 04, 2007 9:35 am    Post subject: Reply with quote

vak255,

Did you miss reading my post?

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri May 04, 2007 9:38 am    Post subject: Reply with quote

MVS uses cyls, tracks, blocks u-name-it. I should think CMS (which I think runs under VM) uses probably the same. Never tried UNIX allocations

but as Koluso said 55996 bytes per track, 15 tracks per cyl number of cyls per 3390 depends on version of 3390.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Mon May 07, 2007 1:54 am    Post subject: Reply with quote

Thank you so much for all the help!!!
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon May 07, 2007 8:13 am    Post subject: Reply with quote

Be mindful that the actual usable bytes per track depends greatly on physical blocksize written. Small blocks waste alot of space on each track due to the architecture.

Here is a link to the 3390 Device Capacity chart showing bytes used at various blksizes:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/am3u1001/B.1.2
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group