PatMcLaughlin
Programmer
Every night we are downloading a .csv file from an FTP site. I then need to copy the data into a cursor. Here is what I did...
I cannot get any data to the cursor.
I have verified all fieldnames, their order, etc yet an empty cursor results. Any help for a dummy (Me)?
Code:
CREATE CURSOR WITCURSOR (WIT_NO C(8), ACTIVE C(1), SETUPCUDTE C(19), EXPIREDTE C(19), ;
LAST1 C(30), FIRST1 C(30), N1_MIDDLE C(1), LAST2 C(30), FIRST2 C(30), N2_MIDDLE C(1), ;
ATTN C(30), ADDR1 C(30), ADDR2 C(30), CITY C(20), STATE C(2), ZIP C(10), PHONE C(10), SNOW_ATTN C(30), ;
SNOW_ADDR1 C(30), SNOW_ADDR2 C(30), SNOW_CITY C(30), SNOW_STATE C(2), SNOW_ZIP C(10), PHONE2 C(10), ;
SERIAL C(8))
SELECT WITCURSOR
APPEND FROM (tcLoadFile) DELIMITED WITH _ WITH CHARACTER |
I cannot get any data to the cursor.
I have verified all fieldnames, their order, etc yet an empty cursor results. Any help for a dummy (Me)?