View previous topic :: View next topic
|
Author |
Message |
saturn
New User
Joined: 30 Jun 2006 Posts: 9 Location: Germany, Eschborn
|
|
|
|
How can I determine the space allocated by a given data set on tape? We have to decide if it is useful to store data on tape or on DASD. We already have a lot of data on tape an now we must determine the allocated and used space for these data sets.
For the data on hard disk I can retrieve these information from LISTDSI and LMDLIST. I also tried to use the catalog search module IGGCSI00 but a got only 'FFFFFF' as result for the primary and secondary allocated space.
How can I collect the space consumption on tape without reading the data it self?
Best Regards
Joern Fischer |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you know the lrecl and blocksize and the number of blocks used (usually from your TMS) you can guess-timate it.
Blocks used * INTEGER(blocksize / lrecl) will tell you roughly how many records there are.
Then it's INTEGER(27998 / lrecl) * 2 which gives number of records per 3390 track
So - record estimate / recs per track = tracks required
tracks required / 15 = cylinders required. |
|
Back to top |
|
|
saturn
New User
Joined: 30 Jun 2006 Posts: 9 Location: Germany, Eschborn
|
|
|
|
Thanks for the detailed reply! This method is a good idea, but I am not sure if this can help me.
The most of our data sets are variable blocked. From my understanding I can use this rule also for VB’s?
I am not sure but I think our data on tape are compressed. If so, I can’t calculate the space from the block size and record length. Correct?
I have to clarify which TMS we are using and if there is any possibility to call the TMS service via REXX. I have to investigate approximately 300 data sets, this can't be done in a manually process. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Whether the tape data is compressed or not, the result should still be reasonably accurate. Although the data in compressed, the number of blocks used will remain the same.
For VB files, the maximum LRECL will probably give a result which is slightly higher than required, but contingency is never a bad thing |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Quote: |
I have to clarify which TMS we are using and if there is any possibility to call the TMS service via REXX. |
Other alternate can be invoking below code
Code: |
//STEP010 EXEC PGM=SYNCTOOL/ ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//DD01 DD DSN=TAPE_FILE_NAME,
// DISP=SHR
//TOOLIN DD *
COUNT FROM(DD01)
/*
//* |
Check the DFSMSG after execution of the code, it'll give you the LRECL & BLOCKSIZE of tape file. Perhaps that info can be of your use. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Anuj
Probably a little more accurate, but that does involve reading each tape file, some of which can be rather large.
IMHO the guess-timate method would be much quicker and would not use rather a lot of resource.
From a single listing from the TMS the guess-timate can be calculated for every tape in one pass and use a lot less resource. Especially if you work in a bill per usage site. |
|
Back to top |
|
|
saturn
New User
Joined: 30 Jun 2006 Posts: 9 Location: Germany, Eschborn
|
|
|
|
Quote: |
Probably a little more accurate, but that does involve reading each tape file, some of which can be rather large. |
Yes I can't read each data set, especially if I have not the slightest idea how be big they are. Nevertheless the sort is not a bad idea. I keep it in view for possibly other requirements.
Could give me a dcollect report the statistics about the data sets on the tape? I asked our work bench about the TMS, but I have to contact the space management.
Thanks and regards Joern |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
The sort solution will read the tapes.
The TMS reports could probably be produced by yourself via a batch job. The best thing is to talk to your storage team and see what they say. When I have had people come to me and say I need this information, I usually give them the job to run for themselves. |
|
Back to top |
|
|
|