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


  • Subject: RE:Converting a packed field to alpha
  • From: John Carr <74711.77@xxxxxxxxxxxxxx>
  • Date: Wed, 11 Nov 1998 21:08:58 -0500



One low tech way is to have bunch of standalone fields, each with a packed
field length.
Ya know, 1-3 packed,   1-5 packed, 1-7 packed.  Find the length from the
DSPFFD
and MOVE the parsed length  into the appropriate packed field.  
Then Z-ADD it to a Zoned field of the  same length.  Then move the Zoned
field to the array.

I did this 15 years ago on the Sys/38,  Kinda  of a dynamic Display PF
utility subfile 
showing the field name and it's value record by record.

Not hard.    Probably slicker way of doing it now if I thought about it but
this one 
worked and didn't break.

John Carr
EdgeTech
Have Classes,   Will Travel

Message text written by INTERNET:MIDRANGE-L@midrange.com
>
to anyone:

I need to convert packed data in a file to an alpha value... Basically I
am reading in a record from a database file and populating an array with
values. This works fine for alpha or zoned fields, but I can't do this
for packed. I am using the file's file field definition to substring out
each individual field.. I know that I have seen someone asking for this
in the past, but I can't find that message anymore..

THanks in advance
<

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.