before all, sorry for my English, i'm Italian.
I was looking for a way to create, from the contents of a table, a "SPUFI" file that contains all "INSERT INTO" instructions, for each row in the table.
EXAMPLE:-----------------------------------------------------------------------------------------
start situation
SELECT * FROM FROM DB2.T3IDRIF
COD FL DT
BK VAL PROGVAL RIF
-------- ----- ------- -----------
104 S 0 20091231
104 N 0 20101231
COD FL DT
BK VAL PROGVAL RIF
-------- ----- ------- -----------
104 S 0 20091231
104 N 0 20101231
result expected
INSERT INTO DB2.T3IDRIF
( COD_BK
, FL_VAL
, PROGVAL
, DT_RIF )
VALUES
( 104
, 'S'
, 0
, 20091231 );
INSERT INTO DB2.T3IDRIF
( COD_BK
, FL_VAL
, PROGVAL
, DT_RIF )
VALUES
( 104
, 'N'
, 0
, 20101231 );
( COD_BK
, FL_VAL
, PROGVAL
, DT_RIF )
VALUES
( 104
, 'S'
, 0
, 20091231 );
INSERT INTO DB2.T3IDRIF
( COD_BK
, FL_VAL
, PROGVAL
, DT_RIF )
VALUES
( 104
, 'N'
, 0
, 20101231 );
END-EXAMPLE ----------------------------------------------------------------------------------
The target is naturally to create a backup file, that works for different environment.
Thank you.
Massimo