|
Thank you David,
I wonder why IBM doesn't let you specify a different code page directly on
the CPYTOIMPF command? Seems that more often than not you are going to want
it in ASCII anyway.
David Morris wrote:
> Bob,
>
> You need to set the codepage for the output file before running
> the cpytoimpf command. You can do this using the mov or cpy
> commands and specifying a tocodepage of 00367 which I
> believe is 7 bit ascii. For full list of code pages look at the
> International Application Development guide on IBM's online
> library web page.
>
> David Morris
>
> >>> Bob Clark <bclark@ussafety.com> 06/30/99 11:28AM >>>
> I am trying to use the CPYTOIMPF command to write a text file to the IFS
> so that it may be used by a PC. I am able to get the file written ok
> using this command:
>
> CPYTOIMPF FROMFILE(LIB1/DBFILE) TOSTMF('/DirA/dummy.s38')
> MBROPT(*REPLACE) RCDDLM(*CRLF) DTAFMT(*FIXED) STRDLM('"') FLDDLM(',')
>
> the problem is that it appears to be writing it in EBCDIC. When I open
> the file on a PC with Client Access, it looks fine(because i have the
> extension set up to be automatically converted to ASCII). However, the
> PC that will be reading this file does not have Client Access.
>
> Is there any way to make the CPYTOIMPF command convert this file to
> ASCII?
begin:vcard n:Clark;Bob x-mozilla-html:FALSE org:US Safety adr:;;;Lenexa;Ks;66214;USA version:2.1 email;internet:bclark@ussafety.com title:Programmer/Analyst tel;fax:913-599-1703 tel;work:913-599-5555 x274 x-mozilla-cpt:;0 fn:Bob Clark end:vcard
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.