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


  • Subject: RE: How to translate characters from english to Latvian
  • From: Colin Williams <Williamsc@xxxxxxxxxxxxxxxxx>
  • Date: Fri, 11 Jun 1999 09:18:31 +0100

What should the to directory be in this example?

-----Original Message-----
From: bvining@vnet.ibm.com [mailto:bvining@vnet.ibm.com]
Sent: Thursday, June 10, 1999 7:12 PM
To: MIDRANGE-L@midrange.com
Subject: How to translate characters from english to Latvian


Colin,

Rather than using CPYTOPCD (which is table based and there is no table
for English to Latvian Windows CP), I would suggest using the CPY
command (which is CCSID based).

If you have a file such as VINING/TESTF member TEST which is CCSID
tagged 37, and want to copy it to a stream file in CCSID 1257 (Windows
Baltic Rim), the the following should work:

CPY OBJ('/QSYS.LIB/VINING.LIB/TESTF.FILE/TEST.MBR') TOOBJ('/test')
  FROMCODPAG(37) TOCODEPAGE(1257) DTAFMT(*TEXT)

As a word of warning, I first tried the above using a file tagged 285
(UK English) and discovered there is no mapping shipped with the system
for 285 to 1257 (there are 68 285 to xxx mappings standard in a V4R3
system, but 1257 isn't one of them...); and so used 37.  You may also
want to use 37 for this copy operation.

Bruce Vining

>
>I am copying some data from an AS/400 file to a PC file. The PC is in
>Latvia. The PC file is being created with the wrong characters.
>
>The steps being carried out are:
>1) CPYTOPCD from AS/400 database file to Document in AS/400 folder
>2) Copy document from AS/400 folder to PC file(PC In Latvia)
>
>Is the problem occurring between 1) or between 2) or between both?
>I need help
>

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to
MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.