Mainframe Path Start learning free
Applied8 min readLesson 5 of 5

Deploying safely to production

Deploying on z/OS means copying the right load modules into the right libraries, binding DB2 packages, and telling CICS to pick up the new versions — in the right order, with approval, and with a fast way back.

What a deploy actually does

  1. Copy load modules from the artifact into the target load library.
  2. Bind the DB2 packages for any changed programs that use SQL.
  3. Tell CICS to load the new copy, for example with CEMT SET PROGRAM(PAYCALC) PHASEIN, so new transactions use the new version.
  4. Update batch JCL or PROCs if they changed.
  5. Record what was deployed, when, by which pipeline run, and who approved it.

Deployment tools such as IBM UrbanCode Deploy or IBM Wazi Deploy, or scripts built on Zowe CLI, perform these steps from a manifest, so they happen the same way every time and in every environment.

Refreshing a program in a CICS region
CEMT SET PROGRAM(PAYCALC) PHASEIN
 STATUS:  RESULTS - OVERTYPE TO MODIFY
  Prog(PAYCALC ) Leng(0000041232) Cob Pro Ena Pri
  NORMAL

Gates before production

Order matters

If a change adds a DB2 column, the database change must be in place before the program that reads it. If a copybook layout changes, every program and file that shares it must move together. Good pipelines deploy related changes as one package and stop if any step fails.

Common mistakes

Forgetting the CICS refresh

The new load module is in the library, but CICS keeps running the old copy in memory until NEWCOPY or PHASEIN is issued.

Deploying the program before the database change

The program fails as soon as it references a column that does not exist yet. Deploy schema changes first.

Untested rollback

A backout that has never been tried fails at the worst time. Rehearse it in a test environment.

What you will see at work

Key terms

Check your understanding.
Take this lesson's quiz and save your progress. Free.

Take the lesson quiz
← Automated testing on z/OSBack to DevOps and CI/CD on z/OS