hi,
I want create a SP for import a txt file in a table, but, not sure how?.
The db2level is 8.1.5 in win2000.
this is a "example" but no work!!:
CREATE PROCEDURE DB2INST1.CREDITOS_IMPORT ( IN ARCHIVO VARCHAR(256))
------------------------------------------------------------------------
-- SQL Stored Procedure
-- Descripcion: cargar archivos de texto a una tabla temporal.
------------------------------------------------------------------------
P1: BEGIN
IMPORT FROM ARCHIVO OF ASC METHOD L (1 4000) NULL INDICATORS (0) MESSAGES C:\MSG.MSG;
END P1
any idea.
TIA
Abel.