It depends on how you want to handle the "bad" fields.

If you want to know -which_ fields have the problem (usually a good idea so that you can identify the source and fix it) then a simple approach is to use a DS laid out as the record should be, do a READ into the DS (which prevents the "bad" fields from throwing an error) and then just perform a simple operation stepping through each numeric field using MONITOR to trap for bad numerics and fixing/reprting them as required.


Jon Paris
Jon.Paris@xxxxxxxxxxxxxx



On Mar 16, 2026, at 10:29 AM, Richard Schoen <richard@xxxxxxxxxxxxxxxxx> wrote:

Hi All,

Doing a S36 conversion to add DDS/DDL to tables.

Is there a good methodology to check for decimal data errors on columns and fix them quickly ?

We do a CPYF *NOCHK to populate the tables.

And I’ve seen SQL function “systools.validate_data” as one possible method.

Thoughts appreciated.

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.