55 pts.
 Field exit keyword is not working
Hi,

     i am trying to use the keyword CHECK(FE) in display file field. But it is not happening. Below is the way how the field is declared:

          CAMT  R        B  8 14REFFLD(CAMTW) 64                                  DSPATR(RI)    64                                  DSPATR(PC)                                        OVRATR                                            EDTCDE(J)                                         [strong]CHECK(FE)[/strong]    



Software/Hardware used:
As400
ASKED: November 23, 2009  7:53 AM
UPDATED: November 24, 2009  6:20 PM

Answer Wiki:
What do you mean by "it is not happening"? Are you getting an error in your compile? Are you able to leave the field without using the field exit key? What version of the O/S are you using?
Last Wiki Answer Submitted:  November 23, 2009  5:40 pm  by  Teandy   5,830 pts.
All Answer Wiki Contributors:  Teandy   5,830 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

Are you missing the CHGINPDFT keyword ?

 1,245 pts.

 

Yes i am able to leave the fiels without pressing field Exit. The Version V5R3

 55 pts.

 

How are you leaving the field?
With TAB key or ARROW keys?
*
Also have you looked at the compile listing to ensure there was is not a low level error>
*
Are you sure the RPG program is using the DSPF that has that keyword?
You may want to recompile both of them.

 32,905 pts.

 

am using the TAB key to leaving the field. There compilation went fine and also the program is using the correct display file

 55 pts.

 

OK, here is your answer.
The CHECK(FE) does not stop you from leaving the field using a TAB, or Arrow Keys.
What the CHECK(FE) will do is to stop you from autmatically advancing to the next field without using the field exit key.
So if you have a 5 position field, and you put CHECK(FE) on it, then when you try to key in the 6th character, it will stop you.
Without the CHECK(FE), it would have advanced to the next field and put the 6th character in the first position of that field.

 32,905 pts.