Quite true. We could not duplicate the job, but we could duplicate the program. 

I have done a poor job of communicating that thought.

With the provided source, the COBOL environment was (or should have been) 
fairly consistent (given the exception that different compiler levels could 
have generated slightly different code and code sequences).

The execution environment (batch vs TSO and so forth) could definitely vary. 

But, for an error as (relatively) minor as this one (no SYSIN input DD 
provided), the execution should have produced a more consistent presentation of 
the error. The DD statement was missing. Whether it was missing in z/OS 1.13 vs 
z/OS 2.1, or whether it was missing in TSO vs batch should not (in my opinion) 
have made much of an impact upon how COBOL (and LE) reported the error to the 
user. 

Yet, when COBOL/LE failed in its attempt to access the (undefined) SYSIN DD, it 
gave a mixed bag of results (as witnessed by the different responses people 
have posted).

To me, it would make more sense if COBOL would simply report the error via 
something as simple as "SYSIN DD not present, ACCEPT verb rejected". 

I apologize that my post was confusing and did not portray what I wanted it to 
portray.

Bill Hitefield
Dino-Software Corporation
800.480.DINO
423.878.5660
www.dino-software.com


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Tom Marchant
Sent: Friday, July 15, 2016 8:01 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Error in a simple COBOL program

On Thu, 14 Jul 2016 23:17:17 +0000, Bill Hitefield wrote:

>We have a seemingly very simply COBOL program. One would expect consistent 
>results. Yet, we have seen multiple results - from what would on the surface 
>seem to be fairly similar environments.

The OP didn't give us much information to enable us to duplicate his job. All 
we can do is guess.

--
Tom Marchant

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to