|
David, You might have more luck using a translation table (*TBL). The built-in translation on CPYTOSTMF has always been weird. You can use one of IBM's tables (QASCII in QSYS, for example) or build one of your own. I will be glad to share the source for one of our tables if you like. Patrick ----- Original Message ----- From: "David Gibbs" <dgibbs@mks.com> To: "'Midrange Mailing List'" <MIDRANGE-L@midrange.com> Sent: Friday, September 21, 2001 9:41 AM Subject: CPYTOSTMF character translation > Folks: > > I've got a perplexing oddity happening here. > > Here's the scenario... > > 1. User enters some free form data into a source physical file > 2. Under program control, the src-pf member is copied to a file on the IFS > using the CPYTOSTMF (using code page 437). > > Pretty simple, eh? Well, the odd part is ... if the user enters a dollar > sign "$" into the source physical file, it gets translated incorrectly in > the stream file on the IFS. > > The source pf has a CCSID of 37, and the stream file has a code page of 437. > > This is on OS400 V4R5. The box is located in the UK. > > I've tested it on V4R3 system running in the US, and it works fine. > > Any ideas? > > Thanks! > > david > > -- > David Gibbs > Sr. Software Engineer > MKS, Inc. > 2500 S. Highland Ave, Suite 200 > Lombard, IL 60148 > > phone: (630) 495-2108 x5004 > http://www.mks.com > mailto:dgibbs@mks.com > > Need a laugh: http://www.userfriendly.org/static > > _______________________________________________ > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l > or email: MIDRANGE-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. > >
As an Amazon Associate we earn from qualifying purchases.
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.