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



On 06-Mar-2015 02:40 -0600, Erwin Donker wrote:
<<SNIP>> When tested separately as you suggested, it looks to me like
the problem is in the cat command. When looking in the file as it is
stored on the IFS, the first couple of lines look like this:

%PDF-1.4
<<SNIP>>

When I issue the cat command (cat -c file.pdf) the result looks like
this:

&àã
<<SNIP>>

And this goes on for a very long time (170 pages?). When I change the
CCSID of my PDF document and then look in the file again, the content
looks like the result of the cat command. So it looks like cat is
changing the data. <<SNIP>>

Actually, the output from the "cat -c" request appears correct; the binary data in the beginning of the file will appear much like shown, when presented as though EBCDIC data, so seemingly the cat utility is properly leaving the data unconverted just as requested. Presumably what was used when "looking in the file as it is stored on the IFS" was either the Display File (DSPF) command or the Edit File (EDTF) command, each of which implicitly translates the data from the ASCII file CCSID to the [default] EBCDIC job CCSID.

<<SNIP>> When I change the CCSID of my PDF document and then look in
the file again, the content looks like the result of the cat command.
So it looks like cat is changing the data.

If the CCSID of the STMF is changed to match the CCSID of the job, thus an EBCDIC CCSID instead of an ASCII CCSID, the DSPF of that STMF should appear nearly the same as the results of the "cat -c" request; that effect would essentially confirm the validity of the "cat -c" results described [but snipped to just the first line] above.


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.