× 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: QNTC
  • From: "Alex A Moore" <alexm@xxxxxxxxxxxxxxxx>
  • Date: Sat, 2 Jun 2001 07:11:34 -0400
  • Importance: Normal

Being both lazy and dumb, my solution is to pre-create the PC ASCII file
using the application that I will use to retrive the data.  That pre-sets
the proper PC file format.  Don't even have to know or care what it is.
Then CPYTOIMPF works.  I tend to believe that the CCSID parameter is used
when copying to a souce physical file or a single field database file.  The
help is not clear on this.

Alex

-----Original Message-----
You wrote:
>CPYTOIMPF FROMFILE(ROB/SPOOL) TOSTMF('/rob/spool.txt') RCDDLM(*CRLF)
>CPY OBJ('/rob/spool.txt') TODIR('/qntc/rob/qtemp') TOCCSID(*PCASCII)
>CPDA1CB Message . . . . :   An equivalent encoding scheme could not be
>found.
>Cause . . . . . :   There is not an equivalent *PCASCII encoding scheme
>  defined for the coded character set identifier (CCSID) 819.

CPYTOIMPF creates a target file with the same CCSID as the source file
unless
you specify otherwise.  It would seem that ROB/SPOOL has a CCSID of 819.

TOCODEPAGE(*PCASCII) tries to determine a corresponding ASCII CCSID based on
the
EBCDIC CCSID of the file.  The CPDA1CB message implies that the file
/rob/spool.txt is in CCSID 819 which is already an ASCII CCSID.  So either
specify the desired ASCII CCSID (probably 1252) or let it default to using
819.

1252 is MS Windows, Latin 1
819 is ISO 8859-: Latin Alphabet Number 1; Latin 1 countires

NOTE:-
TOCCSID(*PCASCII) isn't a valid parameter on CPY at VRM440 so either:
        o you mistyped the example (although it looks like you used cut and
paste)
        o TOCCSID was added to CPY on your release
        o TOCCSID replaces TOCODEPAGE on your release


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

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.