Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file

Google
 
Web mainframegurukul.com

Need Syntax

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL
  View previous topic :: View next topic  
Author Message
Nanda Kishore
Member


Joined: 10 Dec 2007
Posts: 5

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Dec 24, 2007 2:44 pm    Post subject: Need Syntax Reply with quote

Dear All,

I have to put a Condition code to a Step name which resides in a proc,
and make that step to bypass and execute in certain Return codes
Can any one suggest me syntax of it

Regards,
Kishore
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

mkk157
Member


Joined: 07 Feb 2007
Posts: 37
Location: Hyderabad

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Dec 25, 2007 11:13 am    Post subject: Hi Reply with quote

Hi Nanda Kishore,

COND parameter can be coded at 2 places 1) at JOB 2) at EXEC
Below is the detailed information about both of them.

1) at JOB

The COND parameter is used to specify the return code tests the
system uses to determine whether a job will continue processing.
The COND parameter on the JOB statement is global in scope for the
entire job.

Before each job step is executed, MVS performs the COND parameter tests against the return codes from one or more previously completed job steps. If none of these tests are satisfied, the system executes the job step; if any test is satisfied, the system skips ALL remaining job steps and terminates the job immediately.

The tests are made against return codes from the current execution of the job. A step bypassed because of an EXEC statement COND parameter does not produce a return code.

Note that skipping a step because of a return code test is not the same as abending the step. The system abends a step following an error that is serious enough to keep successful execution from occurring. Skipping of a step just keeps it from being executed.

Note: The JOB statement COND parameter determines if job steps are to be skipped or executed. JES3 processes all jobs as if each step will ultimately be executed, and therefore allocates devices for steps that may be eventually be skipped because of the COND parameter tests, so the devices must still be available when the job is submitted.

Syntax:

COND=(code,operator)
COND=((code,operator){,(code,operator)}...)
COND=((code,operator){,(code,operator)}...)

o A single return code test is specified as: (code,operator)
o You can leave off the outer set of parentheses if you code only one return code test
o Up to eight return code tests can be specified per job

The "code" value can be any decimal value in the range 0 to 4095;
the "operator" can be one of the following:

EQ - equal
LT - less than
LE - less than or equal to
NE - not equal
GT - greater than
GE - greater than or equal to

Example 1: Flush the remaining steps in this job if any step's return code is less than 4:

//MYJOB JOB (1234,,2,1),'TEST',COND=(4,GT)

Example 2: Restart this job at stepname JS230, and use the COND=
parameter to force the rest of the job to be skipped:

//PROD010 JOB ('S129-?21'),'ZBD PRODUCTION',RESTART=JS230,
//COND=0,LE)



2) at EXEC


The COND parameter is used to specify the return code tests that MVS will perform to see if a job step will be executed or not. Before a job step containing a COND= parameter is executed, MVS performs the COND parameter test(s) specified against the return codes from all prior job steps or the steps named on the COND= parameter. If none of these tests is satisfied, the system executes the job step; if any test is satisfied, the system skips the job step on which the
COND= parameter is coded.

Tests are made against return code values for the current execution of the job. A step skipped because of an EXEC statement COND parameter will not produce a return code, because it will not be executed.

Note that skipping a step because of a return code test is not the same as abending the step. The system abends a step following an error that is serious enough to keep successful execution from occurring. Skipping of a step just keeps it from being executed.

Note: The statement COND parameter determines if job steps are to be skipped or executed. JES3 processes all jobs as if each step will ultimately be executed, and therefore allocates devices for steps that may be eventually be skipped because of the COND parameter tests, so the devices must still be available when the job is submitted.

Syntax:

COND{.procstepname}=(code,operator{,stepname}{.procstepname})

or

COND{.procstepname}=((code,operator{,stepname}{.procstepname}),
{,(code,operator{,stepname}{.procstepname})}...)
or

COND=EVEN | ONLY

o A single return code test is specified as: (code,operator)
o You can leave off the outer set of parentheses if you code only one return code test
o Up to eight return code tests can be specified per job step
o 'stepname' is the name of the step against which the return code test is to be performed; 'procstepname' is needed if the step whose return code you are testing is in a JCL procedure

The "code" value can be any decimal value in the range 0 to 4095; the "operator" can be one of the following:

EQ - equal
LT - less than
LE - less than or equal to
NE - not equal
GT - greater than
GE - greater than or equal to

COND=EVEN tells MVS to execute this job step EVEN IF a prior step in the same job abends, unless the job is canceled by the MVS operator.

COND=ONLY tells MVS to execute this job step ONLY IF a prior step in the same job abends.

Example 1: Skip a link edit step if the previous step named COMPILE set a condition code (return code) of 8 or higher:

//LINK EXEC PGM=IEWL,PARM='LET,LIST,MAP,XREF',
// COND=(8,LE,COMPILE)
_________________
Kumar
If u can dream it, U can do it.
Back to top
View user's profile Send private message Yahoo Messenger
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Jan 15, 2016 10:01 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-3204.html