I am a newbie first time using UDB on Unix.
I am using the Load Wizard to load a flat file into a table.
All the values are specified in the flat file with the exception of 1 field - timestamp.
When I do the insert I would like to record in the table the time the record was inserted.
As an example below I mapped two fields below Field1 and Field2, but would like to insert a field called timestamp too which is in the table:
CONNECT TO PLSAMPLE USER abc USING *****;
LOAD CLIENT FROM "C:\Canextr\conx.txt" OF ASC MODIFIED BY NULLINDCHAR=Y METHOD L (1 10, 11 200) NULL INDICATORS (0, 0) MESSAGES "C:\abc.txt" INSERT INTO DB2INST2.FILE1(FLD1, FLD2) COPY NO INDEXING MODE AUTOSELECT;
CONNECT RESET;
Am I using the right utility for the load or should I be using a different one. If it is the right one, how do I accomodate the input of timestamp too?
Thanks
I am using the Load Wizard to load a flat file into a table.
All the values are specified in the flat file with the exception of 1 field - timestamp.
When I do the insert I would like to record in the table the time the record was inserted.
As an example below I mapped two fields below Field1 and Field2, but would like to insert a field called timestamp too which is in the table:
CONNECT TO PLSAMPLE USER abc USING *****;
LOAD CLIENT FROM "C:\Canextr\conx.txt" OF ASC MODIFIED BY NULLINDCHAR=Y METHOD L (1 10, 11 200) NULL INDICATORS (0, 0) MESSAGES "C:\abc.txt" INSERT INTO DB2INST2.FILE1(FLD1, FLD2) COPY NO INDEXING MODE AUTOSELECT;
CONNECT RESET;
Am I using the right utility for the load or should I be using a different one. If it is the right one, how do I accomodate the input of timestamp too?
Thanks