× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Lol, RPG cycle to the rescue!

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Douglas Handy
Sent: Monday, July 13, 2009 2:01 PM
To: Midrange Systems Technical Discussion
Subject: Re: Finding invalid data in zoned numeric fields with SQL

This is a zoned field and not packed.


My bad. I didn't see where that was specified, and was just thinking
packed. I guess it comes from the S/32/4/6 days where blanks in a zoned
field became zero automatically, but blanks in a packed field produced
the
error given.

Here's a thought: Use a RPG II in the S36EE to read the file and
rewrite to
a new native file (using program described files of course). In the
process
it will correct all the zone nibbles in zoned numeric fields. <gd&r>

Doug

PS - You can also use FIXNBR(*ZONED) with RPG IV, but that really isn't
quite the same thing as RPG II does.

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-2024 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.