Example—Precompress a Text File With Codepage Conversion

In this example, the source file is a text file named zzz.sac which is precompressed into a file named zzz.txt. The file is converted from EBCDIC-US to ASCII using the codepage option. Default settings are used for parameters that are not specified.

cdsacomp -m compress
         -d text
         -i zzz.txt
         -o zzz.sac
         -p EBCDIC-US,ASCII