What is the difference between ca and cf in as400




















The CF and CA keywords are used in display files to enable function keys. CF01 and CA01 both enable the F1 key on your keyboard. The difference is that a CF command function key updates the fields in your program, while a CA command attention key does not. A CA key also bypasses any field editing.

For example, if you enter a bad value into a field that has the VALUES keyword specified in the DDS and then press a CF key, you will get an error, and the screen will not be returned to the program because the field doesn't pass validation.

CA — Command Attention Key — causes attention and returns control to the program. No Input data is carried from the device to the program. The response indicator value, if specified, is switched ON and is taken into the program.

CF — Command Function Key — causes the input data to be returned to the program along with the response indicator, if specified. It can be observed that the response indicator value is theoretically optional here for both CA and CF. But for CA, it is always ideal to specify the response indicator as that is the only value with which the next operation can be done inside the program using the CA key. You are commenting using your WordPress. You are commenting using your Google account.

If, on the other hand, you hit a CA key, the editing is bypassed, and the CA key is returned to the program although the fields are not. CA does not retains the value into the buffer memory. CF retains the value into the buffer memory. For CA ,it comes out of debugging program. It's just simple. CA keys are used to pass data from display device to your program or reading screen data and return gives control to your program CF keys are usually used to don't any data from display device to program or with out reading screen data before giving control to your program.

CA06 ,CA08 are usually used to add a record or to update a record,it means necessary you need to pass some action or data. CA Transfers data i. And we can use that value in our programming logic. CF dosen't transfer any value.



0コメント

  • 1000 / 1000