prav_06 Warnings : 1 Active User
Joined: 13 Dec 2005 Posts: 154 Location: The Netherlands
|
|
|
|
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
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
Cheer's,
Thamilzan. |
|