|
View previous topic :: View next topic
|
| Author |
Message |
king.hyd
New User
Joined: 28 May 2007 Posts: 6 Location: Hyderabad
|
|
|
|
Hi all,
I have 3 steps in a job . Now i want that step 2 will always be bypassed. What will be the COND statement for that?
Please help me out. |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you understand how the COND parameter works, then it should be easy to determine the correct code.
I suggest that you click the "IBM Manuals" button at the top of any page, and take a good read of the sections for COND and IF/THEN/ELSE/ENDIF
If you still have doubts, then post again |
|
| Back to top |
|
 |
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1217 Location: Dublin, Ireland
|
|
|
|
| Quote: |
| Now i want that step 2 will always be bypassed |
Why not just remove step 2 ? If it's never to be executed it just adds to confusion.
Garry. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
| Quote: |
| I have 3 steps in a job . Now i want that step 2 will always be bypassed. |
Why does someone believe this should even be considered? |
|
| Back to top |
|
 |
fredrick andrews
New User

Joined: 10 Jun 2010 Posts: 52 Location: chennai
|
|
|
|
| king.hyd wrote: |
Hi all,
I have 3 steps in a job . Now i want that step 2 will always be bypassed. What will be the COND statement for that?
Please help me out. |
As others said, you can remove that 2nd job step or comment that out. |
|
| Back to top |
|
 |
sandhyaimmadi
New User
Joined: 18 Aug 2008 Posts: 50 Location: Bangalore
|
|
|
|
| You can give (4095,GT) |
|
| Back to top |
|
 |
Jeffrey Ranney
New User
Joined: 23 Dec 2010 Posts: 20 Location: USA
|
|
|
|
| I always use the IF/THEN/ELSE construct which gives greater control. |
|
| Back to top |
|
 |
king.hyd
New User
Joined: 28 May 2007 Posts: 6 Location: Hyderabad
|
|
|
|
| I think (4095,GT) shuld be the correct answer. Thanks |
|
| Back to top |
|
 |
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1217 Location: Dublin, Ireland
|
|
|
|
... and what if a step in the job gives return code 4096 or higher?
Garry. |
|
| Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
z/OS return codes will be in the range 0 to 4095, hence this in the JCL Language Reference manual:
| Quote: |
16.5.2 Subparameter Definition
code
Specifies a number that the system compares to the return codes from all previous steps in the job or from specific steps. code is a decimal number from 0 through 4095.
Note: Specifying a decimal number greater than 4095 could result in invalid return code testing or invalid return codes in messages.
|
|
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
I've encouraged many new people (students / trainees) to set the return-code to values in the 6 or 8 or 10k range just to see what happens. . . |
|
| Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
| FTP with the EXIT parameter sets the return code value to a five-digit number when the FTP fails, where the first two digits represent the FTP function that failed (27 for GET, 16 for PUT and so forth) followed by the three-digit reply code for the command. So FTP gets values like 27550 fairly regularly. Of course, the job doesn't see 27550 ... |
|
| Back to top |
|
 |
Dsingh29
Active User

Joined: 16 Dec 2008 Posts: 132 Location: IBM
|
|
|
|
| why not use (0,LT)... |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Possibly because zero is not less than zero. . . |
|
| Back to top |
|
 |
singhju
New User

Joined: 01 Dec 2010 Posts: 25 Location: Gurgaon
|
|
|
|
| We can use (0,LE) |
|
| Back to top |
|
 |
Dsingh29
Active User

Joined: 16 Dec 2008 Posts: 132 Location: IBM
|
|
|
|
| sorry, my bad...i meant (0,LE)... |
|
| Back to top |
|
 |
|
|