Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LE COBOL

Status
Not open for further replies.

doohickey

Programmer
Mar 31, 2001
1
US
IS THERE A WAY TO TRAP A SOC7 IN A COBOL PROGRAM COMPILED WITH LE COBOL
 
Doo,

S(0C7)'s are BAD !!! Instead of trying to catch them, prevent them either by demanding correct input or testing for numeric content before processing.

Good luck,
Ronald.
 
Hi,

before you do a compute, you test first if it is numeric.

If you write assembler, you can use a STAE macro.

If you write PL/1, you can define ON units to trap any problem.

In COBOL the numeric test is the normal approach.

Regards,

Crox

 
there is a way, using the language environment. I made my own error handler in COBOL. It works excellent and it survives all abends. Fun. Look it up in the manuals how to do this.
 
I have been off the IBM mainframe for a couple decades but we used to read what was called a "dump" and a S0C7 was rudimentary. Has that gone by the wayside? Maybe that was just for mainframes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top