Hello, first of all I am new with DB2 and databases so please be patient if the questions seems to be stupid
Let's say I have to do this unload , if I did it once and RC was 0 so finished well, what happens if I do the step again?
will it unload it again cancel and write the file again or it will write over it?
In small words: will it duplicate the RECORDS WRITTEN in file ? because with the DISP=(,CATLG,DELETE), it shoul delete it only if abends right?
//*-------------------------------------------
//* UNLOAD TABEL
//*-------------------------------------------
//12345678 EXEC DB2HPU
//SYSPRINT DD SYSOUT=*
//UNLDDN1 DD DSN=xxx.xxx.xxxx.xxxxxxxx.xxxx,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(300,150),RLSE),
// DSORG=PS,LRECL=1300,RECFM=FB
//LOADNDN1 DD DUMMY
//$ORTPARM DD *
OPTION FILSZ=U30000000
/*
//SYSIN DD *
UNLOAD TABLESPACE 12345678.1234567
DB2 NO LOCK NO
SELECT * FROM 1234.98765432 WHERE CIST = 33
OUTDDN (UNLDDN1)
FORMAT DSNTIAUL
thanks in advance