int UDRCounter;
int file_count;
consume {
UDRCounter=UDRCounter+1;
udrRoute(input);
}
drain {
myFolder.myUFDLFile.myTrailerFormat myTrailer;
myTrailer=udrCreate(myFolder.myUFDLFile.myTrailerFormat);
myTrailer.closingdate=dateCreateNow();
myTrailer.numberOfUDRs=UDRCounter;
myTrailer.sourceFileName=(string)mimGet("Disk_1",
"Source Filename");
udrRoute(myTrailer);
}
endBatch{
file_count = file_count + 1;
debug( "Number of UDRs in file:" + UDR_count );
} |