IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Usage of Proc in Cond Parm.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chandu_246

New User


Joined: 11 Jun 2007
Posts: 4
Location: switzerland

PostPosted: Tue Dec 16, 2008 12:40 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 16, 2008 12:49 pm
Reply with quote

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
View user's profile Send private message
chandu_246

New User


Joined: 11 Jun 2007
Posts: 4
Location: switzerland

PostPosted: Tue Dec 16, 2008 3:54 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 16, 2008 4:43 pm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Dec 16, 2008 6:12 pm
Reply with quote

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
View user's profile Send private message
chandu_246

New User


Joined: 11 Jun 2007
Posts: 4
Location: switzerland

PostPosted: Wed Dec 17, 2008 3:00 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts STEM usage in REXX CLIST & REXX 14
Search our Forums:

Back to Top