Hi,
I'm new to this JCL Statement using scheduler, can anyone explain this code?
#SCC,COND=(1-3,EQ,STEP02)
#SCC,COND=(4,LT,STEP02)
#SCC,COND=(0,NE,*-STEP02)
#SCC,COND=(1-3,EQ,STEP04)
#SCC,COND=(4,LT,STEP04)
#SCC,COND=(0,NE,*-STEP04)
Thank you so much in advance.
#SCC Statement
-
- Posts: 5
- Joined: Wed Dec 02, 2009 1:20 am
- Skillset: Beginner
- Referer: google
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: #SCC Statement
Did you check the manual? In particular, section 10.3.4 of the CA-7 Database Maintenance Guide?
-
- Posts: 5
- Joined: Wed Dec 02, 2009 1:20 am
- Skillset: Beginner
- Referer: google
Re: #SCC Statement
Hi Robert,
I just found the manual, and as i understand it, does the statement means:
#SCC,COND=(1-3,EQ,STEP02) -> Step02 completed succesfully if RC = 1-3
#SCC,COND=(4,LT,STEP02) -> Step02 completed succesfully if RC < 4
#SCC,COND=(0,NE,*-STEP02) -> Other step completed succesfully if RC not = 0 except Step 2
#SCC,COND=(1-3,EQ,STEP04) -> Step04 completed succesfully if RC = 1-3
#SCC,COND=(4,LT,STEP04) -> Step04 completed succesfully if RC < 4
#SCC,COND=(0,NE,*-STEP04) -> Other step completed succesfully if RC not = 0 except Step 4
Also, if I want that during an RC=4, the step should be fine, is this SCC code applicable for both step?
#SCC,COND=(4,LE,STEP02)
#SCC,COND=(4,LE,STEP04)
Thank you so much.
I just found the manual, and as i understand it, does the statement means:
#SCC,COND=(1-3,EQ,STEP02) -> Step02 completed succesfully if RC = 1-3
#SCC,COND=(4,LT,STEP02) -> Step02 completed succesfully if RC < 4
#SCC,COND=(0,NE,*-STEP02) -> Other step completed succesfully if RC not = 0 except Step 2
#SCC,COND=(1-3,EQ,STEP04) -> Step04 completed succesfully if RC = 1-3
#SCC,COND=(4,LT,STEP04) -> Step04 completed succesfully if RC < 4
#SCC,COND=(0,NE,*-STEP04) -> Other step completed succesfully if RC not = 0 except Step 4
Also, if I want that during an RC=4, the step should be fine, is this SCC code applicable for both step?
#SCC,COND=(4,LE,STEP02)
#SCC,COND=(4,LE,STEP04)
Thank you so much.
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: #SCC Statement
Your post keeps addressing steps but the #SCC determines whether the job is considered to have completed normally or not. From the manual
Your setting 4,LE,STEP02 means if the condition code set in STEP02 is 4, the job is considered to have abnormally terminated and CA-7 will again not treat it as having completed normally.
so in this case, if the condition code in STEP0030 is 20, the job is considered to have abended and CA-7 will not schedule successor jobs that depend upon normal completion. The job is placed on the queue and can be restarted or forced complete as appropriate.The following are examples of the #SCC statement:
#SCC,COND=(16,LT,STEP0030)
In the above example, if 16 is less than the condition code value returned from STEP0030, the job is considered as having terminated abnormally.
Your setting 4,LE,STEP02 means if the condition code set in STEP02 is 4, the job is considered to have abnormally terminated and CA-7 will again not treat it as having completed normally.
-
- Posts: 5
- Joined: Wed Dec 02, 2009 1:20 am
- Skillset: Beginner
- Referer: google
Re: #SCC Statement
thanks so much for your help and clarifications, was able to do the script and run fine.
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: #SCC Statement
Glad to hear it helped.
-
- Posts: 1
- Joined: Fri Dec 09, 2011 4:19 am
- Skillset: Cobol, IMS DB/DC, VSAM, JCL, Rexx, Focus
- Referer: thru Google
Re: #SCC Statement
Hi,
I am introducing a new print step. The only normal return code for this step is 4. So I have the following #SCC codes in the JCL:
#SCC,COND=(1-3,EQ,PRC0134.PSTINT)
#SCC,COND=(5,LT,PRC0134.PSTINT)
and I dont intend to have any #SCC codes for the other steps in the PROC. My question is,
Is it mandatory to include the global SCC condition code such as 0,NE,*-PRC0134.PSTINT for CA-7 to treat the other steps normally?
Should we always include such a statement after giving SCC codes for any step? Or do we need to include it only on some special cases?
I am introducing a new print step. The only normal return code for this step is 4. So I have the following #SCC codes in the JCL:
#SCC,COND=(1-3,EQ,PRC0134.PSTINT)
#SCC,COND=(5,LT,PRC0134.PSTINT)
and I dont intend to have any #SCC codes for the other steps in the PROC. My question is,
Is it mandatory to include the global SCC condition code such as 0,NE,*-PRC0134.PSTINT for CA-7 to treat the other steps normally?
Should we always include such a statement after giving SCC codes for any step? Or do we need to include it only on some special cases?
-
- Similar Topics
- Replies
- Views
- Last post
-
- 8
- 4331
-
by steve-myers
View the latest post
Sat Oct 16, 2021 8:59 pm
-
-
Splice JCL into one record for DD statement parms
by phcribb » Thu Nov 05, 2020 9:31 pm » in CLIST & REXX - 3
- 1957
-
by phcribb
View the latest post
Fri Nov 06, 2020 8:06 pm
-