Duh ... you're absolutely correct. Getting my bytes and nybles mixed up.

I knew I went to bed too late last night.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Oct 11, 2017, at 2:22 PM, Brian Johnson <brian.johnson.mn@xxxxxxxxx> wrote:

I don't see why not. For example (assuming CCSID 37) for a
packed(3:0) with value 146 you would have x'146F', right? Viewed as
characters that would be an SO and '?'.

On Wed, Oct 11, 2017 at 11:02 AM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:

Given that SO (X'14') and SI (X'15') can't occur in a packed number, the technique I described of using a DS to "convert" packed to character would appear to be a valid approach. But as you note it wouldn't work for an integer.



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

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD


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.