Re: How to calculate size of a PS dataset (no, no yet again)
In 000801c9670e$3b559f80$b200de...@hawkins1960@sbcglobal.net, on 12/25/2008 at 07:58 PM, Ron Hawkins ron.hawkins1...@sbcglobal.net said: So what is your answer to the question? The one that I posted: use, e.g., BLK3390 to determine how many blocks will fit on a track, then do the arithmetic. That assumes, of course, no compression and no short blocks. The OP did not ask how much to allocate - he asked how much is allocated. The answer is the same, i.e., determine the number of blocks/track and do the arithmetic. Factors for block gaps and end-of-track waste are already factored into the existing file allocation. Not if the original allocation was in tracks or cylinders. Not if there are secondary extents. Besides which, if the original poster had the original allocation in, e.g., Mi bytes, then he wouldn't be asking. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see http://patriot.net/~shmuel/resume/brief.html We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
On Tue, 23 Dec 2008 03:07:44 -0600, Parin Gangar paringan...@gmail.com wrote: Hi, I need to calculate the size of a dataset in Megabytes / Gigabytes. I cannot download the file and check the same as I know the file size would be over 50 GB and I don't want to fill up my hard disk. The dataset has following details - Device type . . . . :,3390 Record format . . . :,FB Record length . . . :,1526 Block size . . . . :,7630 1st extent tracks . :,15000 Secondary tracks . :,1500 Current Allocation, ,Allocated tracks . :,297,141 ,Allocated extents . :,190 , , , , Current Utilization, ,Used tracks . . . . :,297,141 ,Used extents . . . :,190 I tried searching this on Google, but didn't get anything. I know that there is some formula for this. Any help will be much appreciated. Thanks, Parin IBM's Interactive Storage Management Facility (ISMF) option 1 will provide the allocated and used space of data sets in KB. If your storage admins don't have ISMF setup to be publically accessible, ask them to. The inquiry functions are useful. (And if you're brave enough, it can run large inquiries in batch (see NaviQuest).) If the data set is SMS compressed, a LISTCAT on the dataset will show it's compressed and uncompressed size in bytes in the COMP-USER-DATA-SIZE and USER-DATA-SIZE fields. Some third party products like FDR report and CA-DIsk can report on the dataset's size. Alan -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset (no, no yet again)
Paul, If you are going to use MB notation for space then you need to use the AVGREC parameter. What you have requested in your JCL is the space to allocate 7200 blocks of 787 bytes, not 5666400 bytes. The allocation of 185 tracks meets that requirement because the request for number of blocks makes allowance for the block gaps. Tracks of 56664 are the minimum allocation unit on MVS, just like some multiple of 512 bytes is the minimum unit for File Systems and raw devices. The characteristics of your file will define the space allocated, and the space used, but it will always end up a multiple of the minimum allocation unit. That may be 1KB for NTFS, or it may be 16KB for an Oracle table space. Therefore it is no surprise that a text file on NTFS with a single byte - the character A - uses 1KB of space, and the minimum space you will use on MVS for the same file 56664 bytes. AVGREC uses some very simple rules to decide the blksize that is used to calculate the number of tracks: 1. The block size from the DCB parameter, if specified. 2. The system determined block size, if available. 3. A default value of 4096. The JCL below confirms your BLKSIZE technique, and the last file uses MB allocation in its purest form in MVS. The others provide DADSM with additional information to calculate the number of tracks required for the file in the same way as your example. //ALLOCEXEC PGM=IEFBR14 //BLKSIZE DD DSNAME=SYSUID..TEST.SIZE.BLKSIZE, // UNIT=3390,DISP=(NEW,CATLG,CATLG), // SPACE=(787,7200) //AVGREC1 DD DSNAME=SYSUID..TEST.SIZE.AVGRECU.BLK787, // UNIT=3390,DISP=(NEW,CATLG,CATLG), // RECFM=FB,LRECL=787,DSORG=PS,BLKSIZE=787, // SPACE=(787,7200),AVGREC=U //AVGREC2 DD DSNAME=SYSUID..TEST.SIZE.AVGRECU.BLKSDB, // UNIT=3390,DISP=(NEW,CATLG,CATLG), // RECFM=FB,LRECL=80,DSORG=PS, // SPACE=(787,7200),AVGREC=U //AVGREC3 DD DSNAME=SYSUID..TEST.SIZE.AVGRECU.BLKDFLT, // UNIT=3390,DISP=(NEW,CATLG,CATLG), // SPACE=(787,7200),AVGREC=U //AVGREC4 DD DSNAME=SYSUID..TEST.SIZE.AVGRECU.BYTES, // UNIT=3390,DISP=(NEW,CATLG,CATLG), // SPACE=(1,5666400),AVGREC=U And the results are exactly what you would expect. It's actually that simple. Command - Enter / to select actionTracks %Used XT -- HAWKINS.TEST.SIZE.AVGRECU.BLKDFLT 116? 1 HAWKINS.TEST.SIZE.AVGRECU.BLK787 1850 1 HAWKINS.TEST.SIZE.AVGRECU.BLKSDB 1020 1 HAWKINS.TEST.SIZE.AVGRECU.BYTES 116? 1 HAWKINS.TEST.SIZE.BLKSIZE 185? 1 So, to tie this back to the original question, how would PARIN calculate the size of his Dataset in MB or GB. Well the answer remains the same - 297,141 * 56664 rounded to MB or GB. If you wanted to allocate this file in MB units you may use: // RECFM=FB,LRECL=1526,BLKSIZE=7630,DSORG=PS, // SPACE=(1,16058),AVGREC=M,DSNTYPE=LARGE However, knowing there is space allocated for about 9,000,000 records you may also use: // RECFM=FB,LRECL=1526,DSORG=PS,BLKSIZE=7630, // SPACE=(1526,9),AVGREC=M,DSNTYPE=LARGE BTW, I'm sure you wanted to use another word other than deceptive. The 56664 bytes is the formatted capacity available for you to use on an emulated track. How efficiently it is used is really up to you - as a Storage Vendor I don't find myself choosing your Block Size. If you really think that the unformatted capacity of an FBA drive in any storage supporting CKD emulation is based on 56664 bytes then you are in for a bit of a surprise. When a customer wants to buy enough disk for 4000x3390-3 they will be sold the number of drives to support the formatted capacity. The same is true for SCSI, and if you base your acquisition on the unformatted capacity of drives. well it's your dog. Ron -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Paul Gilmartin Sent: Tuesday, December 23, 2008 12:43 PM To: IBM-MAIN@bama.ua.edu Subject: Re: [IBM-MAIN] How to calculate size of a PS dataset (no, no yet again) It's rarely so simple (and never on MVS). I just tried: //STEP EXEC PGM=IEFBR14 //SYSUT2DD DISP=(NEW,CATLG),UNIT=SYSALLDA, // SPACE=(787,7200),DSN=SYSUID..TEST.SIZE And got: Data Set Information Data
Re: How to calculate size of a PS dataset (no, no yet again)
Thank You everyone for the replies. I used the solution given by Gadi, and also, got a chance to download the file on to a brand new server for testing, and the computation matched. Regards, Parin On Tue, Dec 23, 2008 at 10:34 PM, R.S. r.skoru...@bremultibank.com.plwrote: (wild guess only) I believe that FIRST RESPONSE gave Parin (question's author) satisfactory answer. We started to invent more sophisticated and sometimes bizarre methods to answer the question already answered. (disclaimer: it is not rant! just observation) I sometimes observe such behavior the list. What's funny, in many cases author is no longer interested in and sometimes he stopped to understand the thing because of topic deviation. In this case we all know that rough answer is easy to obtain using ISPF and simple calculation. More exact answer requires more data and is harder to obtain, however since we didn't get more data there is little reason to search for the answer. My $0.02 Merry Christmas -- Radoslaw Skorupka Lodz, Poland -- BRE Bank SA ul. Senatorska 18 00-950 Warszawa www.brebank.pl S d Rejonowy dla m. st. Warszawy XII Wydzia Gospodarczy Krajowego Rejestru S dowego, nr rejestru przedsi biorców KRS 025237 NIP: 526-021-50-88 Wed ug stanu na dzie 01.01.2008 r. kapita zak adowy BRE Banku SA wynosi 118.642.672 z ote i zosta w ca o ci wp acony. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- Parin Gangar -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset (no, no yet again)
In 003a01c96526$7e55bac0$7b0130...@hawkins1960@sbcglobal.net, on 12/23/2008 at 09:47 AM, Ron Hawkins ron.hawkins1...@sbcglobal.net said: The OP asked how to calculate the size of the file in MB or GB. Gadi responded with the exact answer: No. A track on a 3390 type disk has 56,664 bytes. If you multiply the number of tracks (297,141) by that you get 16,837,197,624 or about 16GB. Which doesn't tell the OP how much he can record in that space with the specified block size. To every question there is an answer that is simple, obvious and wrong. If you allocate the file using MB notation it will be converted to tracks based on 56664 bytes. Ipso facto tracks times 56664 gives you the size in MB on an MVS system. No, at best it gives you the amount to specify on a DD statement, not the actual size. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see http://patriot.net/~shmuel/resume/brief.html We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset (no, no yet again)
Shmuel, So what is your answer to the question? In the meantime, when the minimum allocation unit I can use is a track, and a track has 56664 bytes, the that will be the size of the file. If the op asked how many bytes of data is in his file than I would employ some other method. The OP did not ask how much to allocate - he asked how much is allocated. Factors for block gaps and end-of-track waste are already factored into the existing file allocation. You are operating in the wrong tense. Ron M: An argument isn't just contradiction. A: It can be. M: No it can't. An argument is a connected series of statements intended to establish a proposition. A: No it isn't. M: Yes it is! It's not just contradiction. A: Look, if I argue with you, I must take up a contrary position. M: Yes, but that's not just saying 'No it isn't.' A: Yes it is! M: No it isn't! A: Yes it is! M: Argument is an intellectual process. Contradiction is just the automatic gainsaying of any statement the other person makes. (short pause) A: No it isn't. -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Shmuel Metz (Seymour J.) Sent: Wednesday, December 24, 2008 7:33 AM To: IBM-MAIN@bama.ua.edu Subject: Re: [IBM-MAIN] How to calculate size of a PS dataset (no, no yet again) In 003a01c96526$7e55bac0$7b0130...@hawkins1960@sbcglobal.net, on 12/23/2008 at 09:47 AM, Ron Hawkins ron.hawkins1...@sbcglobal.net said: The OP asked how to calculate the size of the file in MB or GB. Gadi responded with the exact answer: No. A track on a 3390 type disk has 56,664 bytes. If you multiply the number of tracks (297,141) by that you get 16,837,197,624 or about 16GB. Which doesn't tell the OP how much he can record in that space with the specified block size. To every question there is an answer that is simple, obvious and wrong. If you allocate the file using MB notation it will be converted to tracks based on 56664 bytes. Ipso facto tracks times 56664 gives you the size in MB on an MVS system. No, at best it gives you the amount to specify on a DD statement, not the actual size. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see http://patriot.net/~shmuel/resume/brief.html We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
How to calculate size of a PS dataset
Hi, I need to calculate the size of a dataset in Megabytes / Gigabytes. I cannot download the file and check the same as I know the file size would be over 50 GB and I don't want to fill up my hard disk. The dataset has following details - Device type . . . . :,3390 Record format . . . :,FB Record length . . . :,1526 Block size . . . . :,7630 1st extent tracks . :,15000 Secondary tracks . :,1500 Current Allocation, ,Allocated tracks . :,297,141 ,Allocated extents . :,190 , , , , Current Utilization, ,Used tracks . . . . :,297,141 ,Used extents . . . :,190 I tried searching this on Google, but didn't get anything. I know that there is some formula for this. Any help will be much appreciated. Thanks, Parin -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
Parin Gangar paringan...@gmail.com wrote in message news:listserv%200812230307443097.0...@bama.ua.edu... Hi, I need to calculate the size of a dataset in Megabytes / Gigabytes. I cannot download the file and check the same as I know the file size would be over 50 GB and I don't want to fill up my hard disk. The dataset has following details - Device type . . . . :,3390 Record format . . . :,FB Record length . . . :,1526 Block size . . . . :,7630 1st extent tracks . :,15000 Secondary tracks . :,1500 Current Allocation, ,Allocated tracks . :,297,141 ,Allocated extents . :,190 , , , , Current Utilization, ,Used tracks . . . . :,297,141 ,Used extents . . . :,190 I tried searching this on Google, but didn't get anything. I know that there is some formula for this. Any help will be much appreciated. The data is in Used Tracks. The dataset occupies 297141 tracks and each track is about 55KB, so this will be about 16 GB. Kees. ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ** -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
A track on a 3390 type disk has 56,664 bytes. If you multiply the number of tracks (297,141) by that you get 16,837,197,624 or about 16GB. This is a rough estimate. The actual count can depend on parameters you use to transfer the file, the actual data in the file and other factors. For example, if the file has many blanks at the end of each record, the actual size on your computer will probably by smaller. -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Parin Gangar Sent: Tuesday, December 23, 2008 11:08 AM To: IBM-MAIN@bama.ua.edu Subject: How to calculate size of a PS dataset Hi, I need to calculate the size of a dataset in Megabytes / Gigabytes. I cannot download the file and check the same as I know the file size would be over 50 GB and I don't want to fill up my hard disk. The dataset has following details - Device type . . . . :,3390 Record format . . . :,FB Record length . . . :,1526 Block size . . . . :,7630 1st extent tracks . :,15000 Secondary tracks . :,1500 Current Allocation, ,Allocated tracks . :,297,141 ,Allocated extents . :,190 , , , , Current Utilization, ,Used tracks . . . . :,297,141 ,Used extents . . . :,190 I tried searching this on Google, but didn't get anything. I know that there is some formula for this. Any help will be much appreciated. Thanks, Parin -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
On Tue, 23 Dec 2008 03:07:44 -0600, Parin Gangar wrote: The dataset has following details - Device type . . . . :,3390 Record format . . . :,FB Record length . . . :,1526 Block size . . . . :,7630 1st extent tracks . :,15000 Secondary tracks . :,1500 Current Allocation, ,Allocated tracks . :,297,141 ,Allocated extents . :,190 , , , , Current Utilization, ,Used tracks . . . . :,297,141 ,Used extents . . . :,190 I tried searching this on Google, but didn't get anything. I know that there is some formula for this. Why searching Google if you can get the data from your z/OS system (I have got only 6 blocks in a track): bytes/block * block/track * #tracks 7630 *6 * 297141 = 13603114980, less then 13 GiB By the way: using the blocksize of 27468, you would need less then 248000 tracks, it is nearly 5 tracks difference. -- Zaromil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Antwort: How to calculate size of a PS dataset
Hi Parin, the data set has 5 records in each block of 7.630 bytes. A track of 56.664 bytes (assuming 3390 DASD) can contain 7 of your blocks. That are 53.410 bytes per track. The data set has allocated 297.141 tracks, each 53.410 bytes of data. That are 15.870.300.810 bytes (which fit in an amount of 15.498.341 Ki-bytes, 15.136 Mi-bytes, 15 Gi-bytes) of a maximum size. Well, may be the last track contains only one record of 7.630 bytes or full 7 blocks with 35 records (267.050 bytes). When you transfer the data from MVS to e.g. Windows you might need to consider certain other effects, e.g. insertion of new-line symbols, efficient handling of blank symbols (remember, you have RECFM=FB and potentially a lot of X'40') or character set conversion (especially when translating between single byte and double byte codes). So as usual: results may vary and clearly it depends. Cheers Michael Parin Gangar paringan...@gmail.com Gesendet von: IBM Mainframe Discussion List IBM-MAIN@BAMA.UA.EDU 23.12.2008 10:07 Bitte antworten an IBM Mainframe Discussion List IBM-MAIN@BAMA.UA.EDU An IBM-MAIN@BAMA.UA.EDU Kopie Thema How to calculate size of a PS dataset Hi, I need to calculate the size of a dataset in Megabytes / Gigabytes. I cannot download the file and check the same as I know the file size would be over 50 GB and I don't want to fill up my hard disk. The dataset has following details - Device type . . . . :,3390 Record format . . . :,FB Record length . . . :,1526 Block size . . . . :,7630 1st extent tracks . :,15000 Secondary tracks . :,1500 Current Allocation, ,Allocated tracks . :,297,141 ,Allocated extents . :,190 , , , , Current Utilization, ,Used tracks . . . . :,297,141 ,Used extents . . . :,190 I tried searching this on Google, but didn't get anything. I know that there is some formula for this. Any help will be much appreciated. Thanks, Parin -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Antwort: How to calculate size of a PS dataset
One trick I like to use - go to option 3.2 and allocate the file in MB in the panel. Then copy the current dataset to this new one and see how much space was requested in MB. Requires no math. Use the same attributes except instead of cylinders use MB. Lizette -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
On Tue, 23 Dec 2008 11:15:45 +0200, #1490;#1491;#1497; amp;#1489;#1503; #1488;#1489;#1497; gad...@malam.com wrote: A track on a 3390 type disk has 56,664 bytes. If you multiply the number of tracks (297,141) by that you get 16,837,197,624 or about 16GB. This is a rough estimate. The actual count can depend on parameters you use to transfer the file, the actual data in the file and other factors. For example, if the file has many blanks at the end of each record, the actual size on your computer will probably by smaller. One thing to be aware of is whether the file is SMS compressed or not! I do have some PS files which are compressed using SMS. Since these are textual files, they compress __very__ well. If I remember correctly, I usually get about 2.5:1 compression on them. So this method, which is good in the general case, will fail for me on these particular files. -- John -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Antwort: How to calculate size of a PS dataset
Lizette Koehler stars...@mindspring.com wrote in message news:01c96502$a2b37660$e81a63...@com... One trick I like to use - go to option 3.2 and allocate the file in MB in the panel. Then copy the current dataset to this new one and see how much space was requested in MB. Requires no math. Use the same attributes except instead of cylinders use MB. Lizette I think this is quite a labor intensive and CPU expensive way to avoid the maths (297141*55/100) on this 16GB dataset. Kees. ** For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ** -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
On Tue, 23 Dec 2008 03:07:44 -0600, Parin Gangar wrote: I need to calculate the size of a dataset in Megabytes / Gigabytes. I cannot download the file and check the same as I know the file size would be over 50 GB and I don't want to fill up my hard disk. 1) Mount the data set with NFS. Use the wc command on the client system to count bytes. 2) Or, on an FTP client that supports pipes as targets, do: get 'MY.DATA.SET' | wc -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
On Tue, 23 Dec 2008 07:57:39 -0600, Paul Gilmartin paulgboul...@aim.com wrote: On Tue, 23 Dec 2008 03:07:44 -0600, Parin Gangar wrote: I need to calculate the size of a dataset in Megabytes / Gigabytes. I cannot download the file and check the same as I know the file size would be over 50 GB and I don't want to fill up my hard disk. 1) Mount the data set with NFS. Use the wc command on the client system to count bytes. 2) Or, on an FTP client that supports pipes as targets, do: get 'MY.DATA.SET' | wc -- gil OUCH! That's using the old sledge hammer to pound in a finishing nail! grin. If the OP is willing to read the dataset, as the above requires, then I'd use DFSORT to copy it to DD DUMMY. DFSORT will give you the number of bytes read in the file. -- John -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
Another approach that could be used if you are not bothered by reading the whole file is to use ftp and get mvs.dataset.name nul(Windows) or get mvs.dataset.name /dev/null (Linux/*nix) Windows, for its own peculiar reasons, will also accept nul.xxx where xxx is some qualifier of your own choosing, Bill On Tue, 23 Dec 2008 08:03:51 -0600, John McKown joa...@swbell.net wrote: On Tue, 23 Dec 2008 07:57:39 -0600, Paul Gilmartin paulgboul...@aim.com wrote: On Tue, 23 Dec 2008 03:07:44 -0600, Parin Gangar wrote: I need to calculate the size of a dataset in Megabytes / Gigabytes. I cannot download the file and check the same as I know the file size would be over 50 GB and I don't want to fill up my hard disk. 1) Mount the data set with NFS. Use the wc command on the client system to count bytes. 2) Or, on an FTP client that supports pipes as targets, do: get 'MY.DATA.SET' | wc -- gil OUCH! That's using the old sledge hammer to pound in a finishing nail! grin. If the OP is willing to read the dataset, as the above requires, then I'd use DFSORT to copy it to DD DUMMY. DFSORT will give you the number of bytes read in the file. -- John -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
We faced this problem recently when implementing MVS dataset support for SFTP. (The SFTP protocol works much better if the server can provide at least an estimate of the file size in bytes). It is not feasible read the entire dataset to find out the size, since the server provides sizes whenever the client lists the attributes of one or more datasets. Our estimate was based on: (used bytes per track) * used tracks Where used bytes per track was calculated using the track size, block size, and RECFM. The TRKCALC FUNCTN=TRKCAP macro comes in very handy for calculating the capacity of a track. Of course, this only gives you an estimate, which can be skewed by: - Variable sized blocks (smaller blocks have more overhead) - last track not full - text mode transfers with trailing-blank trimming enabled Kirk Wolf Dovetailed Technologies http://dovetail.com -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
On Tue, 23 Dec 2008 08:03:51 -0600, John McKown wrote: OUCH! That's using the old sledge hammer to pound in a finishing nail! grin. Somewhere in here there's an argument supporting keeping one's data in Unix files rather than Classic data sets. Then FTP's DIR command would show the file size. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
In listserv%200812230307443097.0...@bama.ua.edu, on 12/23/2008 at 03:07 AM, Parin Gangar paringan...@gmail.com said: I need to calculate the size of a dataset in Megabytes / Gigabytes. Download BLK3390 from www.cbttape.org; it will tell you how many blocks per track for any block size. Then do the arithmetic. Of course, that assumes no compression. -- Shmuel (Seymour J.) Metz, SysProg and JOAT ISO position; see http://patriot.net/~shmuel/resume/brief.html We don't care. We don't have to care, we're Congress. (S877: The Shut up and Eat Your spam act of 2003) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
In a message dated 12/23/2008 9:04:30 A.M. Central Standard Time, k...@dovetail.com writes: Where used bytes per track was calculated using the track size, block size, and RECFM. The TRKCALC FUNCTN=TRKCAP macro comes in very handy for calculating the capacity of a track. IIRC if you tab scroll right in modern ISPF or use your wide screen Attachmate session(3.4) this is already provided. It may need a customization to toggle KB to MB but it's on the conversion chart with the cycles per second to Hertz diagram on my FX451(solar powered). Alternatively, there's the venerable BLOCKOPT exec on CBT that will give space and recommended blocking. **One site keeps you connected to all your email: AOL Mail, Gmail, and Yahoo Mail. Try it now. (http://www.aol.com/?optin=new-dpicid=aolcom40vanityncid=emlcntaolcom0025) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
Parin, Central Coast Software has a freeware product called DASDCALC which you may find very useful. Here's the link. http://www.centralcoastsoftware.com/ Terry Traylor charlesSCHWAB TIS Mainframe Storage Management Remedy Queue: tis-hs-mstg (602) 977-5154 -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Parin Gangar Sent: Tuesday, December 23, 2008 2:08 AM To: IBM-MAIN@bama.ua.edu Subject: How to calculate size of a PS dataset Hi, I need to calculate the size of a dataset in Megabytes / Gigabytes. I cannot download the file and check the same as I know the file size would be over 50 GB and I don't want to fill up my hard disk. The dataset has following details - Device type . . . . :,3390 Record format . . . :,FB Record length . . . :,1526 Block size . . . . :,7630 1st extent tracks . :,15000 Secondary tracks . :,1500 Current Allocation, ,Allocated tracks . :,297,141 ,Allocated extents . :,190 , , , , Current Utilization, ,Used tracks . . . . :,297,141 ,Used extents . . . :,190 I tried searching this on Google, but didn't get anything. I know that there is some formula for this. Any help will be much appreciated. Thanks, Parin -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset
The other process is a nice little .exe from Central Coast Software which is free called DASDCALC. www.centralcoastsoftware.com It runs on windows and you can plug in the attributes and it will calculate the space in B, KB, MB, GB. I use it all the time for files on the PC to mainframe allocations and back. Lizette -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset (no, no yet again)
Radoslaw, I have to agree. It is hard to believe that such a talented group of people can construct a Rube Goldberg so quickly. The OP asked how to calculate the size of the file in MB or GB. Gadi responded with the exact answer: A track on a 3390 type disk has 56,664 bytes. If you multiply the number of tracks (297,141) by that you get 16,837,197,624 or about 16GB. What other answer could there possibly be? He did not ask how many MB would it use on Windows or *NIX. He did not ask how big is the file after removing block gaps. If you allocate the file using MB notation it will be converted to tracks based on 56664 bytes. Ipso facto tracks times 56664 gives you the size in MB on an MVS system. Ron -Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of R.S. Sent: Tuesday, December 23, 2008 9:04 AM To: IBM-MAIN@bama.ua.edu Subject: Re: [IBM-MAIN] How to calculate size of a PS dataset (no, no yet again) (wild guess only) I believe that FIRST RESPONSE gave Parin (question's author) satisfactory answer. We started to invent more sophisticated and sometimes bizarre methods to answer the question already answered. (disclaimer: it is not rant! just observation) I sometimes observe such behavior the list. What's funny, in many cases author is no longer interested in and sometimes he stopped to understand the thing because of topic deviation. In this case we all know that rough answer is easy to obtain using ISPF and simple calculation. More exact answer requires more data and is harder to obtain, however since we didn't get more data there is little reason to search for the answer. My $0.02 Merry Christmas -- Radoslaw Skorupka Lodz, Poland -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset (no, no yet again)
On Tue, 23 Dec 2008 09:47:15 -0800, Ron Hawkins wrote: What other answer could there possibly be? He did not ask how many MB would it use on Windows or *NIX. He did not ask how big is the file after removing block gaps. If you allocate the file using MB notation it will be converted to tracks based on 56664 bytes. Ipso facto tracks times 56664 gives you the size in MB on an MVS system. It's rarely so simple (and never on MVS). I just tried: //STEP EXEC PGM=IEFBR14 //SYSUT2DD DISP=(NEW,CATLG),UNIT=SYSALLDA, // SPACE=(787,7200),DSN=SYSUID..TEST.SIZE And got: Data Set Information Data Set Name . . . . : user.TEST.SIZE General Data Current Allocation Management class . . : **None**Allocated tracks . : 185 Storage class . . . : **None**Allocated extents . : 1 Volume serial . . . : TSO008 Device type . . . . : 3390 Data class . . . . . : **None** Current Utilization Organization . . . : NONEUsed tracks . . . . : 0 Record format . . . : ? Used extents . . . : 0 Record length . . . : 0 Block size . . . . : 0 1st extent tracks . : 185 Secondary blocks . : 0 Data set name type : Creation date . . . : 2008/12/23 Referenced date . . : ***None*** Expiration date . . : ***None*** Now, by my calculation, 787 x 7200 = 5,666,400. This should be 100 tracks, not the 185 that appears above. Your computation gives what deceptive vendors call unformatted space. It's easy to conjecture (though properly we should ask) that the OP was interested in the size of the data, not the unformatted disk space occupied by the data set. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset (no, no yet again)
On Tue, 23 Dec 2008 14:43:07 -0600, Paul Gilmartin paulgboul...@aim.com wrote: SNIP Your computation gives what deceptive vendors call unformatted space. It's easy to conjecture (though properly we should ask) that the OP was interested in the size of the data, not the unformatted disk space occupied by the data set. -- gil And, as you earlier pointed out, if the OP wanted to know the actual number of bytes contained in the records in the dataset, then the only real way to determine that is to actually read it. However, the 56K / track might be considered a good upper limit if a person only need to know before hand if a dataset could be ftp'ed to a given server (assuming the user knew the space available on the server or if they had some sort of quota). Oh, and again, this assumes no compression product, such as SMS compression or BMC's Data Accelerator, has compressed the data in the dataset. -- John -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset (no, no yet again)
On Tue, 23 Dec 2008 14:55:25 -0600, John McKown wrote: Oh, and again, this assumes no compression product, such as SMS compression or BMC's Data Accelerator, has compressed the data in the dataset. Truly transparent compression products manifest the raw size to the programmer. (Although the compressed size is also useful -- it's another representation of unformatted space.) NOTE and POINT, etc. should likewise work transparently on a compressed data set. I neglected to add my riposte to Ron H. earlier: The Rube Goldberg here is more properly attributable to IBM designers than to the contributors to this list. We're just getting in the spirit of the game. Feels like two whole weeks of Fridays. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset (no, no yet again)
-snip-- I have to agree. It is hard to believe that such a talented group of people can construct a Rube Goldberg so quickly. The OP asked how to calculate the size of the file in MB or GB. Gadi responded with the exact answer: A track on a 3390 type disk has 56,664 bytes. If you multiply the number of tracks (297,141) by that you get 16,837,197,624 or about 16GB. What other answer could there possibly be? He did not ask how many MB would it use on Windows or *NIX. He did not ask how big is the file after removing block gaps. If you allocate the file using MB notation it will be converted to tracks based on 56664 bytes. Ipso facto tracks times 56664 gives you the size in MB on an MVS system. -unsnip--- Ron, I disagree. The OP posted a non-optimal BLKSIZE value and that can make a BIG difference in the number of tracks required, as you well know. And the presence of absence of interblock gaps can make a HUGE difference. Bytes of data vs. space utilized can be vastly different if inefficient methods/sizes are used. I have to go along with this calculation: (Bytes per block) * (Blocks per track) * total number of tracks as yielding a far more accurate value. Happy Holidays to all our friends on this list, and also to Darren and his family. -- Rick -- Remember that sone days you're the pigeon, other days you're the statue. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset (no, no yet again)
Different year... same thread. I saw a similar thread in the archives from November 2006. MB to Cyl Conversion On of the posts said this: For 3390 DASD: - A cylinder holds exactly 780 KB (based on 4K blksize no keys) - to store 1 MB of 4K blocks requires 1.3128 CYLs - 1 CYL = .76171875 MB http://bama.ua.edu/cgi-bin/wa?A2=ind0611L=ibm-mainD=1amp;O=DP=246633 According to DASDCALC a cylinder with a blksize of 4096 is 830K and effective kilobytes is 720K. -- Mark Zelden Sr. Software and Systems Architect - z/OS Team Lead Zurich North America / Farmers Insurance Group - ZFUS G-ITO mailto:mark.zel...@zurichna.com z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/ Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: How to calculate size of a PS dataset (no, no yet again)
The information from the 2006 post is incorrrect. For a 4K blksize no keys, a cylinder holds exactly 720K, as DASDCALC says, not 780K. 4096 * 12 blocks * 15 tracks = 737280 = 720K Also, it is inexact wording to say According to DASDCALC, a cylinder with a blksize of 4096 is 830K because that implies the blksize was a factor used in arriving at the 830K figure. In fact the box where DASDCALC shows 830K (when the Cylinders box is set to 1 and units are set to KB) does not change when you change the value in the Blksize box. It remains at 830K for any blksize value because that box just represents 100% usage of each track, or the capacity if each track contained a 56664-byte block. Bill On Tue, 23 Dec 2008 16:10:55 -0600, Mark Zelden wrote: Different year... same thread. I saw a similar thread in the archives from November 2006. MB to Cyl Conversion On of the posts said this: For 3390 DASD: - A cylinder holds exactly 780 KB (based on 4K blksize no keys) - to store 1 MB of 4K blocks requires 1.3128 CYLs - 1 CYL = .76171875 MB http://bama.ua.edu/cgi-bin/wa?A2=ind0611L=ibm- mainD=1amp;O=DP=246633 According to DASDCALC a cylinder with a blksize of 4096 is 830K and effective kilobytes is 720K. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html