|
Try changing the stream file code page to *PCASCII
--
Paul Nelson
Arbor Solutions, Inc.
708-670-6978 Cell
pnelson@xxxxxxxxxx
-----midrange-l-bounces@xxxxxxxxxxxx wrote: -----
To: midrange-l@xxxxxxxxxxxx
From: "Bob O." <otis_the_cat@xxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
Date: 10/24/2005 10:31AM
Subject: RE: CPYTOSTMF Confusion
Worked good except that the output to the text file looks like this:
o:d-uuoOOAEO:Ua@
*EAAUAAA@aO:eO:aAOAa:aO:Aa:EOA:AAUaOA:AAAA:OOd-o`d-n`nuuo:
Here is the command I used:
From file member or save file . >
'/QSYS.LIB/TGC400.LIB/PDFRGST2.FILE/PDFRGST2
.MBR'
To stream file . . . . . . . . . >
'/PAPERFLOW/XFLOW.TXT'
Stream file option . . . . . . . > *REPLACE *NONE, *ADD,
*REPLACE
Data conversion options . . . . > *NONE *AUTO, *TBL,
*NONE
Database file CCSID . . . . . . > *FILE 1-65533,
*FILE
Stream file code page . . . . . > 37 1-32767, *STMF,
*PCASCII...
End of line characters . . . . . > *CR *CRLF, *LF, *CR,
*LFCR...
----------------------------------------------------------------------
From: "Bob O." <otis_the_cat@xxxxxxxxxxx>
Reply-To: Midrange Systems Technical Discussion
<midrange-l@xxxxxxxxxxxx>
To: midrange-l@xxxxxxxxxxxx
Subject: CPYTOSTMF Confusion
Date: Mon, 24 Oct 2005 08:29:36 -0500
> I don't get it... Why won't this command work? I am trying to
>copy a
> physical file
> with one field (108 Characters long) into a simple text file.
>The TOSTMF
> is a folder
> on the IFS. The error I get is:
> CPYTOSTMF
>FROMMBR('/QSYS.LIB/TGC400.LIB/PDFRGSTR.FILE/PDFRGSTR.MBR')
> TOSTMF('/ACOM/EDOCS/PAPERFLOW/TESTFLOW.TXT')
> STMFOPT(*REPLACE) Object is not a file or is a
>file with attributes not supported by
> this command.
> Object not copied. Object is
>/QSYS.LIB/TGC400.LIB/PDFRGSTR.FILE/PDFRGSTR.MBR.
> Object is not a file or is a file with attributes not supported
>by
> this command.
> Object not copied. Object is
>
>/QSYS.LIB/TGC400.LIB/PDFRGSTR.FILE/PDFRGSTR.MBR.
> --
>This is the Midrange Systems Technical Discussion (MIDRANGE-L)
>mailing list
>To post a message email: MIDRANGE-L@xxxxxxxxxxxx
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/mailman/listinfo/midrange-l
>or email: MIDRANGE-L-request@xxxxxxxxxxxx
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/midrange-l.
>
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
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-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.