gridview data processing

In the 2017 Visual Studio with COBOL processing I have not been able to find a good solution to process numeric data entered in the gridview. I'll describe a situation. With a three byte field described in gridview as numeric (or no formatting) you can't target the data entered in the gridview to a numeric field such as "pic 999". Currently I use "pic XXX" and have to accommodate all the variations of how the data might be input. Anybody have a simple solution?