Reader Feedback and Insights: Not All Hex Dumps Are Created Equal
November 1, 2002 Timothy Prickett Morgan
Hey, Ted:
I have a comment about the use of the Display File (DSPF) command to view a file in hexadecimal format .
|
This may or may not be obvious: DSPF can show any file, but the hex view is not of what is in the underlying file.
Rather, it’s comprised of what DSPF has converted the file to for presentation purposes.
Normally, I’m interested in the actual stored value when using hex views and not mapped values.
To illustrate what I’m talking about, I copied a CL source member to the Integrated File System (IFS), specifying a UCS2 target CCSID.
CPY OBJ('QSYS.LIB/VINING.LIB/QCLSRC.FILE/XYZ.MBR') + TOOBJ('/atest') TOCCSID(13488) DTAFMT(*TEXT) )
The CL source member had one record, whose value was the string pgm followed by blanks.
DSPF shows me EBCDIC hex values:
x'978794404040...'
The DMP command shows UCS2 hex values.
x'00700067006D0020002000200020...'
— Bruce Vining
Sponsored By inFORM DECISIONS |
ELIMINATE THE COSTS OF PRE-PRINTED FORMS, LABOR AND POSTAGE WITH iSeries based e-Forms, e-Checks, e-Mail, e-FAX, and Document Retrieval from the Web are available as individual modules or as a complete e-Document processing ‘Suite’. Click to Download the Complete Suite or Individual Modules today |