× 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: Packed Data in an Alpha Field???
  • From: "Smudski, Jeff" <JeffS@xxxxxxxxxxxxxx>
  • Date: Mon, 22 Mar 1999 18:09:58 -0500

A couple of basic (read: not pretty!) ways to looks at data in hex mode:
1. DSPPFM (you were on the right track, but you have to hit F10-Display
Hexadecimal).
2. CPYF FROMFILE(filename) TOFILE(*PRINT) OUTFMT(*HEX)  -- this gives you a
printout of the records in both character and hexadecimal format.

Neither of these gives you fieldnames, so it's difficult to read.  But, the
info you're looking for is there.

> -----Original Message-----
> From: Robertson, Scott [SMTP:SRobertson@dpsciences.com]
> Sent: Monday, March 22, 1999 4:33 PM
> To:   'RPG400-L@midrange.com'
> Subject:      Packed Data in an Alpha Field???
> 
> I have a file that seems to have packed data being written to an
> alphanumeric field.  Is there any way to "view" the data in this field?
> 
> 
> I've tried viewing the data through DBU, but it just shows the data as
> little squares...the same as viewing it through DSPPFM.  I've tried
> creating an RPG program that moves the data from the alpha field to a
> packed numeric field, but I get a decimal data error.
> 
> I'm hoping that by viewing the data in this field, that I can figure out
> what program is actually writing the data to the file.
> 
> Any suggestions?
> 
> Scott S. Robertson
> Information Systems Manager
> Data Processing Sciences Corp.
> Srobertson@dpsciences.com
> http://www.dpsciences.com
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * This is the RPG/400 Discussion Mailing List!  To submit a new         *
> * message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
> * from this list send email to MAJORDOMO@midrange.com and specify       *
> * 'unsubscribe RPG400-L' in the body of your message.  Questions should *
> * be directed to the list owner / operator: david@midrange.com          *
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  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.