If condition is given in job card, what about first step, wh



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

If condition is given in job card, what about first step, wh

Postby arunkumar » Fri Jun 25, 2010 5:35 pm

If condition is given in job card, what about first step, whether the condition is checked for it or not? If checked then with which return code is it compared?
arunkumar
 
Posts: 5
Joined: Thu Jun 17, 2010 3:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: If condition is given in job card, what about first step, wh

Postby expat » Fri Jun 25, 2010 5:37 pm

Return codes are checked against previously executed steps.
STEP1 has no previously executed steps, therefor has nothing to check against.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: If condition is given in job card, what about first step, wh

Postby Robert Sample » Fri Jun 25, 2010 5:41 pm

From the JCL Language Reference manual:
16.5.4 Location in the JCL

You can specify the COND parameter on any EXEC statement in the job. However, the system evaluates a COND parameter on the first EXEC statement in a job as false.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post