Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Usage of Proc in Cond Parm.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Usage of Proc in Cond Parm.
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 16, 2008 12:49 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 16, 2008 4:43 pm    Post subject:
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: 755
Location: Germany

PostPosted: Tue Dec 16, 2008 6:12 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us