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



Thanks to you all for your help. I have to work on something else right
now, so I'll let you know my results I get back to this program. I got
as far as looking at the hex value and it was "05".

Nancy Barney
IT - Programmer
Dakota Drug, Inc.


-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx
[mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of Simon Coulter
Sent: Monday, June 07, 2010 8:13 PM
To: COBOL Programming on the iSeries/AS400
Subject: Re: [COBOL400-L] READING A TAB DELIMITED FILE IN ILE COBOL


On 08/06/2010, at 10:27 AM, CRPence wrote:

As I recall, the DSPF converts the presented data from an ASCII
CCSID to an EBCDIC CCSID [for a text stream file anyhow],
irrespective of job CCSID. I had always used the DMP command to get
the raw hex values of the data in a STMF.

I recall someone saying that on these lists in previous e-mail (you or
Bruce Vining?) but when I check the DSPF hex output for a CCSID 819
stream file I see:

48657265 20697320 61206C69 6E65206F 66207465 Here is a line of te

The job is in CCSID 37 and the text is legible so must be in that
CCSID but the actual data is tagged with 819 and the hex codes appear
to be ASCII. The spaces are the obvious marker being X'20' instead of
the EBCDIC X'40'.

So it appears that in hex mode DSPF shows the hex for the raw data but
converts the displayable section to the job CCSID. Perhaps this was
changed at V5RyMz because I do recall that earlier (V4)
implementations showed the hex of the converted data.

Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------




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.