View previous topic :: View next topic
|
Author |
Message |
chandu_246
New User
Joined: 11 Jun 2007 Posts: 4 Location: switzerland
|
|
|
|
I am struck with the following COND usage in the below mentioned code. I am aware of giving the STEP name in the COND, but here I see Proc name too in the COND. In the following I need to change FOCUSPROC to PROCFOCUS. How will this effect the COND statement in STEP04?
Can somebody throw light on this.If this topic has been already discussed(My Apologies.I couldn't find it in the search), please mention the path to it.
//STEP03 EXEC FOCUSPROC,SYSIN=APSMRT
//DATA1 DD DISP=SHR,DSN=TEST.DATA2
//OUTCOND DD DISP=(NEW,CATLG,DELETE),
// DSN=TEST.DATA3,
//******************************************
//STEP04 EXEC PGM=IEFBR14,
// COND=(1,NE,STEP03.FOCUSPROC)
Regards,
Chandra |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
1) Nine characters for a procname - I don't think so.
2) How do YOU think it will need to be changed ?
3) Check the syntax for the cond override in step4 - refer (5) below.
4) Is this your HOMEWORK
5) Have you read the JCL reference manual - easily reached by the IBM MANUALS button at the top of each page ? |
|
Back to top |
|
|
chandu_246
New User
Joined: 11 Jun 2007 Posts: 4 Location: switzerland
|
|
|
|
I really appreciate your comments.Do you think I would post this question with out even refering to IBM manuals? I couldn't find condition code usage for procs in IBM manuals.That's why I posted the query.
The code, I presented here is running in Production.Ignore the proc name lengths(Changed the proc name before presenting in Forum so that it doesn't refer my Client name) and formatting stuff.
You didn't answer my question : Have you seen JCL's using procs in Cond Parameter or do you know how to use procs in cond parameter.
Regards,
Chandra
expat wrote: |
1) Nine characters for a procname - I don't think so.
2) How do YOU think it will need to be changed ?
3) Check the syntax for the cond override in step4 - refer (5) below.
4) Is this your HOMEWORK
5) Have you read the JCL reference manual - easily reached by the IBM MANUALS button at the top of each page ? |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
chandu_246 wrote: |
Do you think I would post this question with out even refering to IBM manuals? I couldn't find condition code usage for procs in IBM manuals.That's why I posted the query. |
Well, I doubt that you be either the first or last that did.
Take a lookHERE to see what it says. If you still need help, let us know.
What results did you get from your tests ? |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
HI !
>> COND=(1,NE,STEP03.FOCUSPROC)
== Cond = (Code,Operator,Stepname)
== Cond = (Code,Operator,Stepname.Procstepname)
Stepname or Procstepname must correlate to name of earlier Jobstep.
So Cond refers to a earlier Jobstep-Name and not to the name of a Proc.
This Jobstep-Name could be part of a earlier Proc.
If so, it must be: Code,Operator,Stepname.Procstepname |
|
Back to top |
|
|
chandu_246
New User
Joined: 11 Jun 2007 Posts: 4 Location: switzerland
|
|
|
|
Expat and UmeySan,
I really aprreciate your help.Now I feel I have given very little information, when posting the problem.But still I got the answer.It's a learning.
UmeySan,
What ever u mentioned was correct.FOCUSPROC is a step name in the Proc FOCUSPROC and this proc is executed in the previous step.
Regards,
Chandra
UmeySan wrote: |
HI !
>> COND=(1,NE,STEP03.FOCUSPROC)
== Cond = (Code,Operator,Stepname)
== Cond = (Code,Operator,Stepname.Procstepname)
Stepname or Procstepname must correlate to name of earlier Jobstep.
So Cond refers to a earlier Jobstep-Name and not to the name of a Proc.
This Jobstep-Name could be part of a earlier Proc.
If so, it must be: Code,Operator,Stepname.Procstepname |
|
|
Back to top |
|
|
|