The data compression, data expansion, and query services resides
in SYS1.LPALIB. Your program can invoke these services by using the
CSRCESRV macro.
See z/OS MVS Programming: Assembler Services Reference ABE-HSP for
complete instructions on how to use the CSRCESRV macro.
To invoke the data compression or data expansion services, follow
these steps:
- Invoke the query service by coding the CSRCESRV macro specifying
SERVICE=QUERY. The macro
returns the information you need to invoke the data compression or
data expansion service.
- If you plan to compress data, check the information returned to
ensure that compression is supported.
- Invoke the data compression service (or the data expansion service)
by coding the CSRCESRV macro specifying SERVICE=COMPRESS (or SERVICE=EXPAND).