Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Compilation error --> DFHB0020 not found

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Compilation error --> DFHB0020 not found
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

Site Director


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

PostPosted: Thu Dec 19, 2013 8:15 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Dec 19, 2013 8:52 pm    Post subject: Reply to: Compilation error --> DFHB0020 not found
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    Post subject:
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

Site Director


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

PostPosted: Thu Dec 19, 2013 10:18 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Dec 19, 2013 11:06 pm    Post subject: Reply to: Compilation error --> DFHB0020 not found
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts IDMS/DC-COBOL program - SNAP error wh... rakeshsekar1987 IDMS/ADSO 5 Tue Sep 13, 2016 8:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us