<pedantry>

The op code is not a "hex value." Hex is a way of representing binary values 
for easy-to-grasp human consumption: X'D2' is more compact and easier to grasp 
than 11010010 and a better representation for some purposes than 210. The op 
code is a value in storage and it simply is what it is. Some opcodes are in 
fact a printable EBCDIC code point -- MVC = X'D2' = 'K' comes to mind -- and an 
invalid op code might certainly represent a printable character -- or not. But 
it's just a binary byte in any event, not hex.

So the PoOp simply says "An operation exception is recognized when the CPU 
attempts to execute an instruction with an invalid operation code." No "hex" in 
there. The CPU knows nothing about hex. To paraphrase the advertising slogan, 
hex is for people.

</pedantry>

Just a "thing" of mine.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Steve Thompson
Sent: Tuesday, July 12, 2016 1:26 PM
To: [email protected]
Subject: Re: Error in a simple COBOL program

PIC 1 == Program Interrupt Code 1. Occurs when one attempts to execute a Hex 
value that is not an instruction. Example: X'0000'. 
If executable code falls into that (or branches to it, or jumps to it) one will 
get a PIC 1.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to