# Experimental Stuff
This is code that may come and go. It is usually minimal and may not reflect my usual standards and approach.

## Protection of SNGCHCFLD & MLTCHCFLD Display File keywords

A user asked how to protect SNGCHCFLD and/or MLTCHCFLD fields on a display. As far as I can tell, he wanted to protect the fields on a confirmation screen, before accepting changes. 

It seems there is no way to do that, because you cannot use an indicator on these fields.

This is a work around where the the choices are redisplayed as normal fields in place of the SNGCHCFLD & MLTCHCFLD fields.
 
## B2.DSPF 
This is the display file. It is as minimal as possible to demonstrate the process and was cribbed initially for the original questioner's DDS.

The initial display looks like this:

![Initial](./Screen_1.png) 

Make entries and choices, perhaps  like this:

![Make entries](./Screen_2.png)

Press enter and see this confirmation screen:

![Confirmation](./Screen_3.png)

Press F12 and you are back to the original entry. 

![Redisplayed](./Screen_4.png)

Enter exits the program.

## B2.RPGLE

The driving RPGLE. There are comments in the code. The choice fields are in an array and can easily be changed with minimal effort. 