IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Compilation error --> DFHB0020 not found


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
urogallo

New User


Joined: 16 Dec 2013
Posts: 2
Location: Spain

PostPosted: Thu Dec 19, 2013 8:10 pm
Reply with quote

Hi all

I'm compiling a Cobol CICS program and getting the following error:

"DFHB0020" WAS NOT DEFINED AS A DATA-NAME. THE STATEMENT WAS DISCARDED.

It's a little strange since this program has been being compiled for months, this morning for example it compiled with no errors. Today we made some little changes but none of them affected to CICS sentences.

As you surely know, this DFHB0020 appears in CICS sentences like READQ or WRITEQ when they are "translated".

I have been searching help in internet and in this forum, and the only useful thing I have found is that the error may be happening due to precompiler (10 years old post in other forum).

Any ideas? I would like to check it out with the support team too
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Dec 19, 2013 8:15 pm
Reply with quote

Hello and welcome to the forum,

Quote:
Today we made some little changes but none of them affected to CICS sentences.
Well, not intentionally . . .

Suggest you COMPLETELY remove the "little changes" and see if the error goes away.

Always suspect the most recent change . . .
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Dec 19, 2013 8:52 pm
Reply with quote

DFHB0020 is a CICS field, inserted by the translator for usage in a CICS/COBOL program. It is defined as a S9(04) COMP field (Binary-Halfword). Check with your support personnel. You're missing a SYSLIB concatenation.

By chance, have you introduced System Programmer CICS API's, such as INQUIRE? If so, you must use the Translator (NOT compiler) option "SP'.

HTH....
Back to top
View user's profile Send private message
urogallo

New User


Joined: 16 Dec 2013
Posts: 2
Location: Spain

PostPosted: Thu Dec 19, 2013 10:12 pm
Reply with quote

Ok, I've solved it. I removed all changes as Dick suggested but the errors caused by DFHB0020 still were there.

What was happening? Did I removed ALL changes? The answer was, of course, no. I checked the code and I found an unintentional change. I explain:

As many times we all do, we have commented boxes to explain the code for example:


Code:
      **************
      *  paragraph *
      **************



Starting in column 7, but I discovered (thanks to some warnings in the compilation job report) one of these lines started after column 8 like this

Code:
              **************
      *  paragraph *
      **************


I restored the changes I wanted to do to the program, rewrote correctly that text box and the result was good and the program compiled.

Anyhow, thanks for answers and support. One important lesson learned: Warnings in compilation jobs reports are there for something! icon_wink.gif

Regards everyone
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Dec 19, 2013 10:18 pm
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Dec 19, 2013 11:06 pm
Reply with quote

Many shops use a FLAG(E) setting for compilations. Personally, I recommend FLAG(I,I) and you'll get to see ALL things the compiler has flagged.

Many times, you'll get a W when a parameter is missing from a USING and that can lead to all sorts of wonderful "opportunities". icon_eek.gif

Just my two cents....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top