× 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.



"COBOL400-L" <cobol400-l-bounces@xxxxxxxxxxxx> wrote on 06/29/2016
01:00:02 PM:
----- Message from Dan <dan27649@xxxxxxxxx> on Tue, 28 Jun 2016 17:
39:50 -0400 -----

To:

"COBOL Programming on the IBM i (AS/400 and iSeries)" <cobol400-
l@xxxxxxxxxxxx>

Subject:

Re: [COBOL400-L] Display data not getting to program

My COBOL is rusty at best. However, I'm certain that the F-keys need to
be
defined as CFnn in the DDS.

I'm sure you already know this, but, you know, gotta ask the stupid
question: Are you certain that you are reading the display format with
the
data you are trying to get? It seems that you are under certain
circumstances, but not others?

If you don't get any other takers on this thread, you may need to post
the
relevant source for the COBOL and DSPF.

- Dan

On Tue, Jun 28, 2016 at 5:18 PM, Basil Zangare <bazangare@xxxxxxx>
wrote:


I tried it both ways. It will work If I don't write the footer and
write
only the control.



Dan is correct. In the display file (DSPF) you code the available function
keys. A CAnn specifies an 'Command Attention' key. The returns the record
but does not contain the data entered by the user--also, no field
validation is performed. Coding CFnn specifies a 'Command Function'
key--data is returned to the program. Even with a CFnn if you've coded the
function keys on the control and the footer, they have to be coded the
same. It can depend on the order you write the Control and Footer records.
You'll need to specify the OVERLAY keyword on the record you write second.
Of course if you don't specify it, the first record is cleared from the
screen and the data fields might not be available for the user. There are
other keywords that can prevent the system from clearing the first record
written, but you still could have problems with the data not being
available. If you can't figure it out, you'll need to post some code as
Dan suggested.

Michael Quigley
Computer Services
The Way International
www.TheWay.org

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.