Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Use of TRSMAIN Utility program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
chinnielr

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Wed Sep 17, 2008 10:22 am    Post subject: Use of TRSMAIN Utility program
Reply with quote

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
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Wed Sep 17, 2008 11:00 am    Post subject:
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 17, 2008 12:16 pm    Post subject:
Reply with quote

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
View user's profile Send private message
chinnielr

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Wed Sep 17, 2008 1:25 pm    Post subject: Reply to: Use of TRSMAIN Utility program
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 17, 2008 2:59 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Wed Sep 17, 2008 9:40 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us