CA and CF keywords

425 pts.
Tags:
AS/400
CA
Whats the exact diff between CA and CF keywords, and how the system handles the difference between them? If possible please explain it with an example.

Software/Hardware used:
Iseries

Answer Wiki

Thanks. We'll let you know when a new response is added.

The CA function keys only return to the program the fact the the indicator is *ON. No other information is returned.
The CF function keys also return any input information

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Kar
    If possible please explain it with an example. If I have A CF03(03 'Exit') A CA12(12 'Cancel') whats the diff when I pressed 03 and 12 indicators, how the program handles them.. what is going to be returned to the program.
    425 pointsBadges:
    report
  • CharlieBrowne
    when you do F12, the only thing returned to the program is *IN12 = *ON when you do a F3, the whole input buffer is returned. That means all input field values will be returned so you can use them for procesing.
    62,340 pointsBadges:
    report
  • anandx
    CAnn (mm: 'text') or CFnn (mm: 'text') is the basic structure of DDS where CA is command attention, CF is command Function;  nn is an option indicator, which is the fn key user hits; mm is the response ind that the sys feeds to pgm.  nn and mm need not be same, but usually they are. When nn is hit all indicators other than nn is turned *off and only nn is turned *on
    DSPF and pgm communicate thru an i-o buffer which carries between them both data and indicators.
    When a CAnn is hit, DSPF feeds pgm only the indicators not the data, any new data entered in any input capable field is lost to pgm, but pgm does see old data already in i-o buffer (because that is unchanged) which is to say that the pgm is starring at an expired data. This also means that the data is un-validated when control returns to pgm.
    CF is bit more disciplined, when a fn key is hit and it is controlled by a CFnn, then (a) first, validations are done on all input capable fields, if error exists then control doesn't  switch to pgm, screen stays there and (b) when there is no error, pgm gets mm indicator *on as well as the current new data.
    CA and CF can be mixed within a single DSPF. It may be prudent to use CA when only indicator status is needed and choose CF when one needs data as well 
    20 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: