|
View previous topic :: View next topic
|
| Author |
Message |
chinnielr
New User
Joined: 11 Jul 2005 Posts: 87
|
|
|
|
Hi,
I have seen a post by expat on utility program. Below is the code for that.
//*
//TRSMAIN EXEC PGM=TRSMAIN,PARM=PACK UNPACK
//SYSPRINT DD SYSOUT=*
//INFILE DD DISP=SHR,DSN=xxxxxxx
//OUTFILE DD DISP=(NEW,CATLG),DSN=xxxxxxx.TRSMAIN,
// SPACE=(TRK,(750,150),RLSE),
// RECFM=FB,LRECL=1024
Could you please let me know whether it will reduce the usage of SPACE by the file?
I have executed this utility and SORT as well and found the below statistics
I/P file has the usage of
Current Allocation:
Allocated cylinders: 10
Allocated extents: 1
Current Utilization:
Used cylinders: 10
Used extents: 1
SMS compressible: No
After I ran TRSMAIN by giving SPACE=(TRK,(5,5), RLSE)
My O/P file has below statistics with CPU usage of 8.99 Secs
Current Allocation:
Allocated cylinders: 14
Allocated extents: 1
Current Utilization:
Used cylinders: 14
Used extents: 3
I ran the same using PGM=SORT (with SORT FIELDS=COPY) with SPACE=(TRK,(5,5),RLSE) and my O/P file the following statistics
Current Allocation:
Allocated cylinders: 147
Allocated extents: 12
Current Utilization:
Used cylinders: 147
Used extents: 12
Could somebody tells me why there was a difference in allocation and utilization.
Also can you please tell me whether TRSMAIN will be used to reduce the space of DASD.
Kindly suggest.
Thanks in advance.
Chinni. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
| Quote: |
| Could somebody tells me why there was a difference in allocation and utilization. |
I suspect you have not been consistent with the jcl. Neither sort nor trsmain should take more space than the original file. SORT should take the same (unless the blksize is improved) and trsmain should take less.
| Quote: |
| Also can you please tell me whether TRSMAIN will be used to reduce the space of DASD. |
No, it will not - at least not if you want to use the file directly. TRSMAIN is a specialized compression utility (also known as TERSE). It is not compatable with things like pkzip and winrar formats.
As compression is done with trsmain, i would expect the cpu usage to be much higher than some other program. |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
Yes, I am interested to see the reason why you would compare TRSMAIN to SORT.
| Quote: |
After I ran TRSMAIN by giving SPACE=(TRK,(5,5), RLSE)
My O/P file has below statistics with CPU usage of 8.99 Secs
Current Allocation:
Allocated cylinders: 14
Allocated extents: 1
Current Utilization:
Used cylinders: 14
Used extents: 3
|
Interesting - - - It appears that your file has used two extra extents thatg are not allocated. Also interesting to see that your space parameters are TRACKS yet the allocation is in CYLS. Are you sure that you are looking at the correct file ? |
|
| Back to top |
|
 |
chinnielr
New User
Joined: 11 Jul 2005 Posts: 87
|
|
|
|
Hi,
Sorry for the confusion.
After I ran TRSMAIN
My O/P file has below statistics with CPU usage of 34.23 Secs, But the No. of volumes allocated for the O/P file are 4.
Current Allocation:
Allocated tracks: 1308
Allocated extents: 62
Current Utilization:
Used tracks: 1308
Used extents: 62
After I ran SORT
My O/P file has the statistics as below. The O/P was allocated on only one volume.
Current Allocation:
Allocated cylinders: 460
Allocated extents: 1
Current Utilization:
Used cylinders: 460
Used extents: 1
I think usage of TRSMAIN will definetely reduce the usage of SPACE for O/P file as compared to SORT. Please correct me if I am wrong.
Also kindly let me know why the O/P file was allocated to multiple volumes when used TRSMAIN.
Does it not impact the resource utilization when a file is mounted on multiple volumes?
Thanks in advance.
Chinni. |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
With an allocation of TRK,(5,5) you can only have 16 extents per volume and I would hazard a guess that your SMS DC is set up for multi volume by default.
TRSMAIN is an IBM utility program to compress data to be sent to IBM for analysis, but I have used it many times to compress data which I FTP'd to other mainframes. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
| Quote: |
| I think usage of TRSMAIN will definetely reduce the usage of SPACE for O/P file as compared to SORT. Please correct me if I am wrong. |
What you say is not incorrect, but i believe you misunderstand what you have said. While the output from trsmain requires less dasd, it is not usable, so why create a file this way?
The output from trsmain will require less space than the output from sort, but you will not be able to read that output file into any of your programs. The output from sort would be directly readale. To use the copressed output from trsmain, the file would need to be de-compressed and would then require the original amount of space.
If you explain what you want to do or what you want to better understand, we may be able to offer suggestions. |
|
| Back to top |
|
 |
|
|