1.CA(command Atention key)& CF(command Function key)
difference with example?Please can any body tell me in real
time exp?
2.Can any body tell me some mandatery function keys using
while creating any screen with use of SDA-FUNCTION
kEYS?

Answers were Sorted based on User's Feedback



1.CA(command Atention key)& CF(command Function key) difference with example?Please can any bod..

Answer / ullas

Above ans is not correct its just opposite

CF is a command function key to transmit changed data as
opposed to CA command attention key, which does not transmit
changed data.

Is This Answer Correct ?    50 Yes 1 No

1.CA(command Atention key)& CF(command Function key) difference with example?Please can any bod..

Answer / neha

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. 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). The best use for CA keys is
keys that exit a screen without updating data--typically,
CA03 or CA12 in iSeries applications.

Is This Answer Correct ?    33 Yes 0 No

1.CA(command Atention key)& CF(command Function key) difference with example?Please can any bod..

Answer / priya

CA does not retains the value into the buffer memory.
CF retains the value into the buffer memory.If we have
F3=Exit defined with CF in display File,in debug give F3 in
screen ,then it returns control to Debugging Program.For CA
,it comes out of debugging program.

Is This Answer Correct ?    4 Yes 0 No

1.CA(command Atention key)& CF(command Function key) difference with example?Please can any bod..

Answer / archanasam

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.
So CF03 = exit usually used for existing screen,no need to pass data.
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.

Is This Answer Correct ?    0 Yes 1 No

1.CA(command Atention key)& CF(command Function key) difference with example?Please can any bod..

Answer / ardeep

CA Transfers data (i.e the indicator values) from the
Workstation/Display file to the RPG program. And we can use
that value in our programming logic.

Example -> F3 - Exit option on all the AS400 screens.

CF dosen't transfer any value. We can use the indicator
value only inside the Workstation/Display file and not
outside it.

Is This Answer Correct ?    7 Yes 40 No

Post New Answer

More RPG400 Interview Questions

How to print output from openquery in as400 ?

1 Answers   Four soft,


Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any

2 Answers   Satyam,


How to declare the more than one file in cl/400.

13 Answers   IBM,


What is the difference between RPG/400 and RPG4

1 Answers   HCL,


How to select highest score of each subject or how to select highest income of every month?

0 Answers  






suppose if we want to update the data in cl what we will do?

9 Answers  


am 2010 passed out . can any one tell me which course is good to put 2+fake .guide me

1 Answers  


WHAT IS MEANT BY SIGNATURE VAILOTION ERROR

1 Answers   IBM,


How can we search particular records from the database file in RPG. For example, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular 'NAME' field. How can we do the above using SEARCH criteria other than using the IF cond?

4 Answers   CTS,


Need a sql query: retrive all duplicate records in table

3 Answers  


What is the significance of UDATE?

5 Answers   IBM,


can any body correct the following code? Following a procedure which returns the maximum of two numbers.Correct the following code. P GETMAX B D GETMAX PI D NUM1 35 0 D NUM2 45 0 C IF NUM1 > NUM2 C RETURN NUM1 C ELSE C RETURN NUM2 C ENDIF P GETMAX E

1 Answers  


Categories