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



Thanks Alan,

One critical piece of information that I missed as that it substring of 18Bytes out of 1200 long field which we are talking about.

Also I meant for 90% of records has this 18byes as Char and only 10% has packed numeric data.

Thanks,
Ashwani

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Alan Campin
Sent: Thursday, July 15, 2021 9:20 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Handling packed data in Character string

⚠ EXTERNAL MESSAGE – Think Before You Click



Could you look at the low order nibble for a hex D or F. If yes, are the other fields packed numeric, maybe.

On Thu, Jul 15, 2021, 5:05 PM Singh, Ashwani (Lake Mary) via RPG400-L < rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

Hello,

I have a situation where < 10 % of my records which I am processing
have packed numeric data and rest are normal Character Data.

I need to print these packed numeric data as character on a report.

I would like to know how should I handle this, using monitor block is
expensive as most of them are non-numeric anyways.

Please let me know how to go about resolving this situation.

Thanks,
Ashwani

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinf
o/rpg400-l__;!!P9vvK-4S!3oB9mQBq5n6hRpB3QnG3pOOP9T7j1EgeoRPxqksgS8a0GM
xMtV4GEpg_a-uT8c8XI0Q$ or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.com/v3/__https://archive.midrange.com/rpg400-l__;!!P9vvK-4S!3oB9mQBq5n6hRpB3QnG3pOOP9T7j1EgeoRPxqksgS8a0GMxMtV4GEpg_a-uTicFbFGc$ .

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://urldefense.com/v3/__https://amazon.midrange.com__;!!P9vvK-4S!3
oB9mQBq5n6hRpB3QnG3pOOP9T7j1EgeoRPxqksgS8a0GMxMtV4GEpg_a-uTYWrPzY0$

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://urldefense.com/v3/__https://lists.midrange.com/mailman/listinfo/rpg400-l__;!!P9vvK-4S!3oB9mQBq5n6hRpB3QnG3pOOP9T7j1EgeoRPxqksgS8a0GMxMtV4GEpg_a-uT8c8XI0Q$
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.com/v3/__https://archive.midrange.com/rpg400-l__;!!P9vvK-4S!3oB9mQBq5n6hRpB3QnG3pOOP9T7j1EgeoRPxqksgS8a0GMxMtV4GEpg_a-uTicFbFGc$ .

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://urldefense.com/v3/__https://amazon.midrange.com__;!!P9vvK-4S!3oB9mQBq5n6hRpB3QnG3pOOP9T7j1EgeoRPxqksgS8a0GMxMtV4GEpg_a-uTYWrPzY0$

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.