# JCL

**URL:** <https://techcommunity.softwareag.com/t/jcl/76090>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Code-Samples\
**Created:** [February 5, 2008, 4:29pm UTC](https://techcommunity.softwareag.com/t/jcl/76090 "2008-02-05T16:29:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidhya](https://avatars.discourse-cdn.com/v4/letter/v/7feea3/32.png) [@vidhya](https://techcommunity.softwareag.com/u/vidhya)\
**Post date:** [February 5, 2008, 4:29pm UTC](https://techcommunity.softwareag.com/t/jcl/76090/1 "2008-02-05T16:29:27Z")

</div>

Can we use if and if in JCL

Ex . if RC ne 0 and if RC ne 1  
perform process  
end-if  
end-if

---

<div class="post-metadata">

**Author:** ![Eduardo\_Sisamon](https://avatars.discourse-cdn.com/v4/letter/e/c5a1d2/32.png) [@Eduardo\_Sisamon](https://techcommunity.softwareag.com/u/Eduardo_Sisamon)\
**Post date:** [February 5, 2008, 4:45pm UTC](https://techcommunity.softwareag.com/t/jcl/76090/2 "2008-02-05T16:45:31Z")

</div>

Hi,

As i can remember, you can use up to 15 nested IF statements, but in your case, you can put it like this:

IF (RC NE 0 & RC NE 1)  
…

Best Regards.  
Eduardo.

---

<div class="post-metadata">

**Author:** ![vidhya](https://avatars.discourse-cdn.com/v4/letter/v/7feea3/32.png) [@vidhya](https://techcommunity.softwareag.com/u/vidhya)\
**Post date:** [February 5, 2008, 5:26pm UTC](https://techcommunity.softwareag.com/t/jcl/76090/3 "2008-02-05T17:26:38Z")

</div>

Thanks. I have used it as

If RC GT 1  
end-if

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [September 3, 2009, 10:56am UTC](https://techcommunity.softwareag.com/t/jcl/76090/4 "2009-09-03T10:56:44Z")

</div>

Part of TOOLKIT has a job submission utility that will allows compile time JCL with IF’s & DECIDEs + more.

I have attached the PDF doco. This is part of the next version of TOOLKIT  
[TKSUBMIT.pdf](https://techcommunity.softwareag.com/uploads/short-url/6DEv23OgkOQe0qSSK6HOX1OUSxW.pdf) (48.9 KB)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:49pm UTC](https://techcommunity.softwareag.com/t/jcl/76090/5 "2021-04-02T14:49:06Z")

</div>


