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

comparison in COND parameter


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

New User


Joined: 17 Jan 2007
Posts: 6
Location: Pune

PostPosted: Thu Jan 25, 2007 1:09 pm
Reply with quote

Hi,

Can anyone tell me in COND parameter the return code is compared with the comparison code or vice versa?
Plz mention the situation when return code is compared with condition code & vice versa.
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Thu Jan 25, 2007 1:44 pm
Reply with quote

Hey Vijay,

The best way to explain cond code is to take a look at the procedure IGYWCL i.e.. the procedure that is used for compile and link edit your cobol pgm's.. if u look into the procedure it would contain two steps

Code:
//cobol exec pgm=igycrctl
//dd
//dd
//lked exec pgm=iewl,cond=(4,lt,cobol)

no take a look at the cond stmt. which is coded in the lked step name

Code:
COND=(4,LT,COBOL)


If your cobol step ends with a RC of 8(Say u have made some mistake in the syntax of COBOL pgm).

now RC.COBOl=8 so

the check takes places like this

IS 4(Hard coded) Less Than 8(RC.COBOL)

the answer is YES 4 is less than 8 so the cond is satisfied , which will make the lked step to flush , only compile step would be run and the link edit step would skipped. If u refer cond parameter coded in IGYWCL proc. i am sure that u can master COND statement and play with it

I hope u got the concept clear icon_biggrin.gif

Cheer's,

Thamilzan.
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
Search our Forums:

Back to Top