---
title: "JCL: How to Skip Steps from Proc"
description: "To skip a step from proc, I have explained the code you need to add in the JCL. So skipping proc steps this solution highly useful."
url: https://srinimf.com/2012/07/28/jcl-how-to-skip-steps-from-proc/
date: 2012-07-28
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2012/07/jcl-how-to-skip-steps-from-proc.jpg?fit=1200%2C700&ssl=1
categories: ["JCL"]
tags: ["jcl condition codes", "JCL tips and Tricks"]
type: post
lang: en
---

# JCL: How to Skip Steps from Proc

Recently, my friend got a project [to skip step](https://srinimf.com/2015/12/04/you-have-answer-for-this-job-cond-parameter-question-in-jcl/)s in a proc. There are 250 steps in the proc (JCL procedure). He requires to skip the PS210 step from the proc.
Here is the solution that you need to give [COND in JCL](https://srinimf.com/2012/08/16/jcl-condition-codes-3-points-to-know/). No need to make any change to the Proc.

**Also You May Like:**[**The Key Differences Between **](https://srinimf.com/2014/08/19/10-points-instream-and-cataloged-procedures-of-jcl/)**[In-stream and Cataloged Procedures](https://srinimf.com/2014/08/19/10-points-instream-and-cataloged-procedures-of-jcl/)**

Use COND.PS210(0,LE) at STEP1. The COND validates with the previous proc step’s (PS209) return code. If the RC from PS209 is ‘0’. Then, the comparison is “0 LE 0 “, which means the condition becomes true. So the step bypasses.

### JCL Example That Skips Execution of Procedure’s Steps

```
//Jobname  job (acct info), msglevel=(1,1),Notify=ABCDEF
//*
//JOBLIB   DD   DSN=MY.LIBRARY,DISP=SHR
//PROCLIB       JCLLIB ORDER=(Proc lib name)
//*
//STEP1    Exec  TESTPROC,
//      COND.PS210(0,LE)
//STEPLIB  DD   DSN=MY.LIBRARY,DISP=SHR
//
```

Related posts

- [How to Restart PROC Step in JCL Best Example](https://srinimf.com/2012/12/16/jcl-restarting-proc-step/)DateDecember 16, 2012
- [JCL Mainframe Advanced Tips on Procedures or Procs](https://srinimf.com/2014/07/29/jcl-mainframe-advanced-tips-on-procedures/)DateJuly 29, 2014
- [JCL Cataloged Vs Instream Procedures: Here are Differences](https://srinimf.com/2014/07/05/jcl-cataloged-in-stream-procedures/)DateJuly 5, 2014

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2012%2F07%2F28%2Fjcl-how-to-skip-steps-from-proc%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2012%2F07%2Fjcl-how-to-skip-steps-from-proc.jpg%3Ffit%3D1200%252C700%26ssl%3D1&description=JCL%3A%20How%20to%20Skip%20Steps%20from%20Proc)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2012/07/28/jcl-how-to-skip-steps-from-proc/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2012/07/28/jcl-how-to-skip-steps-from-proc/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2012/07/28/jcl-how-to-skip-steps-from-proc/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2012/07/28/jcl-how-to-skip-steps-from-proc/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20JCL%3A%20How%20to%20Skip%20Steps%20from%20Proc&body=https%3A%2F%2Fsrinimf.com%2F2012%2F07%2F28%2Fjcl-how-to-skip-steps-from-proc%2F&share=email)
-

### Like this:

Like Loading…
