TRSMAIN is commonly used for uploading diagnostic data to IBM Support. Besides compressing the data, it also converts it into a fixed length format which can be helpful when dealing with OS/390 datasets containing variable length records.
TERSE is now available as AMATERSE in all currently supported versions of z/OS. A PTF OA19194 is required for z/OS 1.7 and z/OS 1.8. When invoked as AMATERSE, DDNAMEs SYSUT1 and SYSUT2 are used. When AMATERSE is invoked via alias TRSMAIN, then the same DDNAMEs are used as before.
The IBM TRSMAIN support page provides additional information on installing and using TRSMAIN.
//stepname EXEC PGM=TRSMAIN,PARM='PACK' //STEPLIB DD DISP=SHR,DSN=loadlib //SYSPRINT DD SYSOUT=*,LRECL=133,BLKSIZE=12901,RECFM=FBA //INFILE DD input dataset //OUTFILE DD output datasetA TERSEd dataset should be roughly half the size of the input dataset.
//stepname EXEC PGM=TRSMAIN,PARM='UNPACK' //STEPLIB DD DISP=SHR,DSN=loadlib //SYSPRINT DD SYSOUT=*,LRECL=133,BLKSIZE=12901,RECFM=FBA //INFILE DD input dataset //OUTFILE DD output datasetA packed dataset must have RECFM=F or RECFM=FB with logical record length (LRECL) 1024. You do not need to specify DCB parameters in the JCL when creating the output dataset for either a pack or unpack operation.
TRSMAIN supports an UNPACK function which is equivalent to TRSUNPCK.