× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: DEBUG--Field values
  • From: "Jerry Thomas" <jerryt@xxxxxxxxxxx>
  • Date: Mon, 23 Oct 2000 10:02:41 -0500
  • Importance: Normal

Title: DEBUG--Field values
Hello Raja,
    I just want to add a little more info that might help. While in debug mode you can hit the F15 which gives you different view options while you are debugging. 
The ILE COBOL for AS/400 Listing View will give you all fields that will be used by the database or SQL. It will show you the DDS field names copied in from the COPY DDS/DD/DDR-all-formats of.  When you hit F11 on the record level it should show you all fields under that level. You can show duplicate fields in different record levels by specifying OF RECORD-LEVEL after each field. exp. -- EV FIELD-A of RECORD-A. Hope this helps.
Jerry
 
-----Original Message-----
From: owner-cobol400-l@midrange.com [mailto:owner-cobol400-l@midrange.com]On Behalf Of Rick S.
Sent: Monday, October 23, 2000 8:41 AM
To: COBOL400-L@midrange.com
Subject: Re: DEBUG--Field values

Hello Raja,
                I don't totally understand what your saying but if I'm right your using the F11 Key to display fields and record formats.  There is a difference between RPG and COBOL if you display a record format in COBOL you get the whole record without field definition.  I couldn't tell you what your receive in RPG, but when I've done RPG I was debugging on specific fields not record formats.  You have to use the F11 key on the exact field you want in a specific record format. Another answer would be copy the DDS into your program as actual source code and don't use the Copy DDS command.  This would let you go and check specific fields in the FD portion of your program.  Also if you are using field names that are not unique you will have a problem in the debugger because it doesn't know which record format to display the field from.  If you have access to Code 400 the debugger in Code 400 is a bit better than the AS/400 interactive debugger.  There are probably some other people that know more about this than I.  Just trying to help.
 
Rick
 
----- Original Message -----
From: Raja_Nama
Sent: Monday, October 23, 2000 12:01 AM
Subject: DEBUG--Field values

 HI-----

I am new to COBOL400 programming.
while debugging i can see the values of the fields by pressing F11 on that particular filed in the case of RPG but in the case

of cobol i can see the complete record format contents but not the individual fields.I can understand the reason behind it.

The memory buffer in the case of RPG is same for the field irrespective of how many files this field contain.where as in the case of COBOL the memory buffer  will be different for each file.

Is there any way of displaying the field values even in the case of COBOL400.
Please do not say give different names/alies names to the fields in each of the file.

Thanx in advance

regards
reddy raja nama 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.