Ask the Expert

Command Attention vs. Command Function keys (CA/CF)

When I press the enter key in a screen program data is returned to the program. But when I press a command key, data does not seem to be returned to the program. How can I make data return to the program using a command key, while retaining use of the enter key to also return data to the program?
If you have defined your command keys as CA (command attention) in the DDS, the key will return control to your program without reading the screen. Redefine these command keys as CF (command function) and they will read the screen prior to returning to your program. They can be defined at the file or the record format level, but not both. When you change a single CA, such as CA05, if it is defined anywhere else in the DDS, you must also change that definition to CF.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


This was first published in September 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

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

Your password has been sent to: