|
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 mailing list archive is Copyright 1997-2025 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.