Go back to the spec-writer and see if you can get this done.
"Pre-process" your input file with your SORT product. Use PARSE to put the fields into fixed positions of fixed length. In your program, check that each is numeric, rejecting appropriately if not, then add them all up in the normal way. It'll make things easier all around, especially if the input file is used in more than one place.