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
Are you missing the CHGINPDFT keyword ?
Yes i am able to leave the fiels without pressing field Exit. The Version V5R3
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.
am using the TAB key to leaving the field. There compilation went fine and also the program is using the correct display file
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.