35 pts.
 Function keys.
Hi, I am trying to use function keys in rpgle fixformat (f2=save etc.) but i don't know how to use and how write down the coding, if anyone knows this coding please tell me. Thanks.

Software/Hardware used:
Software
ASKED: December 9, 2012  6:43 PM
UPDATED: December 10, 2012  6:20 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. Michael Tidmarsh   13,930 pts. , programerrpgle   35 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

When you define a function key in a display file, your program looks for an indicator after it reads the display record. If the indicator is on, the program does whatever your logic says to do. It’s not clear what you mean by not knowing how to code it. It’s just a regular IF-test. — Tom

 110,035 pts.

 

In addition to what TOm mentioned, remember coding you yest CF02  vs CA02 will cause them to perform slightly different. You can also change the default indicator that the command key uses if needed.  Then it just a simple test like Tom said. Check is based in the indicators numeric value or the alpha.e. F2 can be *IN02 or *INKB your choice.

 4,095 pts.

 

Typo in last message. Should have said.remember coding your DDS, CF02  vs CA02 will cause them to perform slightly different

 4,095 pts.

 

 I have one pf file and i want to read all records in that pf file through the cobol, how i can read all records? plz explaine me with example.? 

 35 pts.