Hi all,
I load a flat file into a table via CTL (loader).
This flat file contains records for years 2001, 2002, 2003, 2004, 2005 and I only have to load records till current year.
Example
LOAD DATA
INFILE 'D:\TRANSFER\BBMF04.TXT'
INTO TABLE SIFI.COMMITMENT_INPUT """""WHEN (31:34) <= CURRENT YEAR """""
FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '"'
( IAN POSITION(16:30) CHAR "TO_NUMBERIAN)",
AÑO POSITION(31:34) CHAR "TO_NUMBERAÑO)",...and some other fields....
My question is:
Is there any way I can put a when clause to filter only the desired records till current year ? or do I have to build a work table?
Thanx in advance
Angel
I load a flat file into a table via CTL (loader).
This flat file contains records for years 2001, 2002, 2003, 2004, 2005 and I only have to load records till current year.
Example
LOAD DATA
INFILE 'D:\TRANSFER\BBMF04.TXT'
INTO TABLE SIFI.COMMITMENT_INPUT """""WHEN (31:34) <= CURRENT YEAR """""
FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '"'
( IAN POSITION(16:30) CHAR "TO_NUMBERIAN)",
AÑO POSITION(31:34) CHAR "TO_NUMBERAÑO)",...and some other fields....
My question is:
Is there any way I can put a when clause to filter only the desired records till current year ? or do I have to build a work table?
Thanx in advance
Angel