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
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 |
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 |
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 |
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 | 2 No |
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 |
How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program
I have to change a program. This program is calling a subroutine mor than 100times within it. so will it have any performance issue? if yes than what changes i can make. Thanx for ur valuable answer.
I want to add 10 days in current date. how it is possible in CL program...?
I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?
Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfile , from third page i have selected a record and called some other program .on returning, subfile is being loaded from the frist page. so can any one kindly suggest me in retaining my third page after returning. i.e loading from third page.
Interviewer asked me write down DDS for load all subfile .can anybody write dds
I have learnt through Net that Debugging a Batch job involves 1. Submit the job with the HOLD (*YES) parameter: SBMJOB HOLD(*YES) or Hold the job queue that before submitting the job by using the HLDJOBQ command. 2. Determine the job name, user, and number of the submitted job by using the WRKSBMJOB command. 3. Type the Start Service Job command on your screen: STRSRVJOB JOB(job name/user/number) 4. Type the Start Debug command on your screen: STRDBG 5. Release the job in the jobq. Type WRKSBMJOB and then put a 6 beside the job to be released and press enter, or, if the job queue was put on hold, release the job queue with the RLSJOBQ command. 6. A display appears when the job is ready to start, saying that you can now begin debugging the job. Press F10 to show the Command Entry display. 7. Now you can start debugging by entering an Add Break Point command: ADDBKP 8.ENDDBG 9.ENDSRVJOB I tried this for RPG/400 Program and up to six steps of the above it's ok,but for me no source is displayed and i typed DSPMODSRC in Command line but still i can't see the sourceif i press F.10 and enter command ADDBKP i don't know how to add break points through it,usually i add break points using F.6 for Interactive job debugs,but since this is batch i don't know sir,Please help me out. I was asked this question in a interview,i know only RPG/400 and i’m asking for debugging of RPG/400 program only sir. or is it only possible to debug BATCH RPG ILE JOB and it is not possible to debug BATCH RPG/400 JOB kindly help me out sir
Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Duplicate data error. What action would you take ( C D I R )...?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
What is the difference Return and InLr?
1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm when the job runs? write an logic? 3.In wich command the option *drop is used?
parameters cannot be passed in which one??