CPYTOIMPF Questions and Answers

Recent IT Questions

21 - 39 of 39
<<PREVIOUS 1|2 NEXT>>

Problem with delimiter in CPYTOIMPF

I have used pipe symbol | as the delimiter to seperate fields.I used this in a DS and moved it to a flat file.From the flat file CPYTOIMPF was used to created a text file and ftpd.The problem is that the | symbol is read as ! in another system.Wat could be the reason

View Answer   |  Jan 13 2009  10:32 AM GMT
CL/400, CPYTOIMPF, Pipe-Delimited Text File
asked by Anderson123

  840 pts.

CPYTOIMPF and EXCEL defaults

I have an issue when copying an AS400 file to the IFS. One field that is defined as 15 charachter and contains numeric data does not show up in .csv format correctly without reformatting the column to special. I also tried defining the field as numeric, and had the same result. Example of data...

View Answer   |  Jan 6 2009  8:39 PM GMT
CPYTOIMPF, Microsoft Excel, CSV format
asked by Sbarnes

  5 pts.

cl

DCL &TEXTFILENM *CHAR 40 dcl &curdt *char 6 dcl &curtm *char 6 /* build your CL file name as */ RTVSYSVAL SYSVAL(QDATE) RTNVAR(&CURDT) RTVSYSVAL SYSVAL(QTime) RTNVAR(&CURTM) ChgVar &TextFileNm (QDATE *TCAT QTIME *TCAT ‘.TXT’ CPYTOIMPF … To stream file . . . . . . . . . TOSTMF &TextFileNm ...

View Answer   |  Dec 31 2008  9:45 AM GMT
CL, CPYTOIMPF, CL programming
asked by Anderson123

  840 pts.


Error code 10: Function sequence error using CPYTOIMPF on AS/400

I am using the CPYTOIMPF function on an AS400 to copy from one data base file to another. I want to end up with a .CSV file format. It worked once but now I get the following error: Message Id: SQ999999 Error occurred in SQL Call Level Interface. A procedure call encountered an error. ...

View Answer   |  Dec 22 2008  4:17 PM GMT
SQL, CPYTOIMPF, AS/400 DB2
asked by AS400 - Ask the Expert

  395 pts.

CPYTOIMPF - SQL ERROR

I am using CPYTOIMPF to copy AS400 database file to another AS400 database to get the receiver file in .csv format to download to a pc folder. I get a SQL error " Error occured in SQL Call Level Interface. Function sequence error." Does anyone know what this error means? I know that my receiver...

View Answer   |  Dec 18 2008  5:28 PM GMT
CPYTOIMPF, SQL error messages, SQL Call Level Interface
asked by Ann

  45 pts.

CL - Copy To Import File

I am using the CPYTOIMPF fromfile(PF) to STMF('dir\acp&txtfile') where &txtfile is &curdt *tcat &curtm.(system date and time) The stream file is created as acp&txtfile and what i want is acp120108100150.

View Answer   |  Dec 1 2008  10:13 AM GMT
CPYTOIMPF, CL, CL/400
asked by Anderson123

  840 pts.

Copying an externally-described file to the IFS

Hello, I need to copy several externally-described files to the IFS. What is the best way to copy an externally-described file on the iseries to the IFS on the same iseries? I am wanting the file on the IFS to be in either EBCDIC, ASCII, BINARY, or Comma Separated Variable format. I thought...

View Answer   |  Nov 25 2008  10:13 PM GMT
IFS, CPYTOIMPF, Copying from iSeries to IFS
asked by Panthers90

  5 pts.

TXT file naming using CL

Hi I hve created a txt file from a pf using cpytoimpf.The name of the txt file should have ccyymmddhhmmss in its name.I can retreive the date and time parameters from qdate and qtime.How do i name the txt file using a CL.

View Answer   |  Nov 25 2008  11:16 AM GMT
CPYTOIMPF, CL, CL/400
asked by Anderson123

  840 pts.

CPYTOIMPF performance problem

Since moving from V5R4M0 to V6R1M0 our program that copies from a PF to an import file on the IFS using the CPYTOIMPF command has had major performance issues. What used to take 30 minutes to copy now takes as much as 24 hours.

View Answer   |  Nov 11 2008  4:47 PM GMT
IFS, CPYTOIMPF, V5R4
asked by Jstone

  5 pts.

last field needs a terminator character

adding FLDDLM character between fields but I need terminator at end of last field, how can I do It ??

View Answer   |  Oct 3 2008  6:43 PM GMT
CPYTOIMPF, FLDDLM
asked by Pasqua

  5 pts.

CPYTOIMPF 'To File' problem

The following command: ===> CPYTOIMPF FROMFILE(LTCLIB/WPELG01P) TOFILE(LTCLIB/WPELGCSV) MBROPT(*REPLACE) STRDLM(*NONE) produces error To-file WPELGCSV in LTCLIB not allowed. The explanation says the To file must be an externally defined PF, which it is. I need to remove the double quote...

View Answer   |  Sep 10 2008  5:22 PM GMT
RPGLE, CPYTOIMPF, CL
asked by Lwk

  25 pts.

CPYTOIMPF

I am coping a PF from the iSeries (V5R3M0) using Cpytoimpf, within the file is an alpha field with leading zeros. when the file is opened in excel it drops the leading zeros, assuming it is a numberic field, anyway to retain leading zeros?

View Answer   |  May 16 2008  12:58 AM GMT
Data mining/analysis, CPYTOIMPF, V5R3
asked by AmandaC

  30 pts.

CPYTOIMPF - Physical file to IFS, get imbedded blanks

I have a physical file with the following fields. (field - attribute - sample content) FILL01 - 1A - blank KEY - 8A - AAPCTINV LENGTH - 2S 0 - 60 TEXT - 60 A - 8028038 When looking at the file using DSPPFM, the info = AAPCTINV608028038 Note, it has 1 space at the begining Using the...

View Answer   |  May 7 2008  5:04 PM GMT
IFS, CPYTOIMPF, DDS
asked by Klw

  50 pts.

Where does the time of IFS stored files come from ?

Since we have shifted to summer time, and adapted the Qtime value of the ISeries (V5R4 Model 525), the files created by ISeries native applications and moved by this applications to IFS automaticaly using CPYTOIMPF present a bad creation/modification time. The time is one hour later. I don't find...

View Answer   |  Apr 11 2008  7:25 AM GMT
AS/400, IFS, CPYTOIMPF
asked by TSCHMITZ

  470 pts.

Copy DDS defined file to .txt file

I am trying to copy a large, 1.4 mil records, 535 byte records, from an old DDS defined file on the iSeries to a .txt file. I have used FTP and CPYTOIMPF using every combination of setting I can think of. Every time it translates the packed numeric fields correctly but creates garbage for the alpha...

View Answer   |  Mar 27 2008  8:55 PM GMT
iSeries, IFS, CPYTOIMPF
asked by Oldtonew

  45 pts.

creating a .csv from iseries file

I've asked this question before and was told to change the parm in CPYTOIMPF to STMFCODPAG(819). The date in the .csv file is garble. CPYTOIMPF FROMFILE(qtemp/&FILE_NAME) + TOSTMF('/ILS/payops/*tcat &file_name *tcat '.csv') (*REPLACE) + ...

View Answer   |  Dec 18 2007  3:28 PM GMT
iSeries, CPYTOIMPF
asked by Shelties

  10 pts.

Bad date.

I'm using the "CPYTOIMPF" to create a .csv file from a iseries database. All fields look good when opening the spreadsheet, except the date. The format of the date is MM/DD/YY 8 position char. field Here's what it looks like.ñññòð÷

View Answer   |  Dec 14 2007  3:20 PM GMT
CPYTOIMPF, iSeries database, CSV
asked by Shelties

  10 pts.

AS/400 Journaling download to PC - unreadable data

We are journaling some files on the AS/400 and need to download the journal entries to a pc based file. We are using the DSPJRN command to copy the journal entries to a db file and then using the CPYTOIMPF command to convert it to a text file. This issue is that some of the data is unreadable. ...

View Answer   |  Oct 11 2007  6:14 PM GMT
AS/400, Journaling (Exchange), CPYTOIMPF
asked by Diann

  0 pts.

21 - 39 of 39
<<PREVIOUS 1|2 NEXT>>