Using these services

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:
  1. 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.
  2. If you plan to compress data, check the information returned to ensure that compression is supported.
  3. Invoke the data compression service (or the data expansion service) by coding the CSRCESRV macro specifying SERVICE=COMPRESS (or SERVICE=EXPAND).