Opening and closing files from a batch job

You can open and close CICS® files from a z/OS® batch job in a number of ways.

About this task

  • You can use the CICSPlex® SM application programming interface (API), which provides you with access to CICS system management information and allows you to invoke CICSPlex SM services from an external program. The API can be called from programs running in z/OS Batch. See Developing CICSPlex SM applications and CICSPlex SM API commands.
  • You can use the Java Batch 1.0 API support that is provided by the Liberty batch-1.0 feature. Java Batch 1.0 provides an API for batch applications and a runtime to run and manage batch jobs. See Liberty features.
  • You can use the external CICS interface (EXCI). Programs running in MVS™ can issue an EXEC CICS LINK PROGRAM command or use the CALL interface to call CICS application programs running in a CICS region. MVS programs can take CICS resources offline, and back online, at the start and end of an MVS job, for example to open and close CICS files. See EXCI concepts and EXCI sample programs.