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



I'm on an older system so this may be different but I have to follow this
command with a COPY TOCODEPAGE(*PCASCII) DATAFMT(*TEXT)

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Lapeyre, Francis
Sent: Friday, July 21, 2006 10:12 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: IFS Question

I'm doing this:

CPYTOIMPF  FROMFILE(&LIB/SURVEY SURVEY) +          
              TOSTMF('/ReData/survey.csv') +        
              MBROPT(*REPLACE) RCDDLM(*CRLF) +      
              DTAFMT(*DLM) STRDLM('"') FLDDLM(',') +
              NULLIND(*NO)                          

Francis Lapeyre
IS Dept. Programmer/Analyst
Stewart Enterprises, Inc.
E-mail: flapeyre@xxxxxxxx 

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rick baird
Sent: Friday, July 21, 2006 9:56 AM
To: Midrange Systems Technical Discussion
Subject: Re: IFS Question

also, i've had better luck with *PCASCII rather than *STMF

On 7/21/06, rick baird <rick.baird@xxxxxxxxx> wrote:
try CPYTOIMPF.  STMF does not delimit the file, just copies it byte
for byte flat.

On 7/21/06, Matt Gross <prrgg1@xxxxxxxxxxxxx> wrote:
I have an EDI file, 900 bytes.  The fields are comma seperated.  They'd
like to attach the file to an email as a .CSV to be opened in Excel.

  I'm using CPYTOSTMF, with an extension of .CSV.  When opened in the
email, the data is wrapped as if it's not recognizing the commas and
seperating the fields.

  Settings:

  Stream file option . . . . . . .   *REPLACE
Data conversion options  . . . .   *AUTO
Database file CCSID  . . . . . .   *FILE
Stream file code page  . . . . .   *STMF

  Appreciate any suggestions.

  TIA,
  Matt




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