Hi Guillermo,
> APPEND FROM ( cFileTXT ) DELIMITED WITH PIPE
> APPEND FROM ( cFileTXT ) DELIMITED WITH ( { "|","|" } )
...
> --- AgenRet_TXT.txt ---------------------------------------
> 20512081372|'NEGOCIACION KIO' SOCIEDAD ANONIMA CERRADA|01/06/2012|RS
> R.S.096-2012|
> 20505108672|1818 S.A.C|01/02/2006|RS R.S.254-2005|
> 20315738823|3A S.A.|01/11/2012|RS R.S.228-2012|
> 20100119227|3M PERU S A|01/06/2002|RS R.S.037-2002|
> 20498608036|5M DISTRIBUCIONES S.R.L.|01/11/2012|RS R.S.228-2012|
> . . .
> ------------------------------------------
>
> The result is a DBF with only two registers, when they should have 10 (5
> for each APPEND FROM)
> What is my mistake?
You use the pipe character as a separator (but the separator should be a
comma), not a delimiter. The Clipper 5.3 Norton Guide explains it like this:
"DELIMITED WITH <xcDelimiter> identifies a delimited ASCII text file
where character fields are enclosed using the specified delimiter. You
can specify <xcDelimiter> as a literal character or as a character
expression enclosed in parentheses."
... (note the word "enclosed") ... and also ...
"This table shows the format specifications for DELIMITED and DELIMITED
WITH <xcDelimiter> ASCII text files:
DELIMITED Text File Format Specifications
---------------------------------------------------------------------
File Element Format
---------------------------------------------------------------------
Character fields May be delimited, with trailing blanks truncated
Date fields yyyymmdd
Logical fields T or F
Memo fields Ignored
Numeric fields Leading zeros may be truncated
Field separator Comma <==== here
Record separator Carriage return/linefeed
End of file marker 1A hex or CHR(26)
----------------------------------------------------------------------"
Regards,
Klas