Dataloader/MP Reference Manual

Table Of Contents
Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual424148-003
5-10
NEWTRANSACTION
Status should be set to 2. If MISCn does not modify the record, Status should be
set to anything except 1 or 2.
Both RecIn and RecOutBuf are buffers whose length is RecOutBufLen bytes long.
It is permissible to extend the record, even when converting in place in RecIn, as long
as the new length is less than RecOutBufLen bytes.
If MISCn fails, it should return a value of -1 in Status. If you want to stop processing
this record and go back to the read loop to fetch the next record, Status should be set
to 0.
NEWTRANSACTION
The NEWTRANSACTION exit is called only if the -T parameter is specified, just after
DataLoader/MP has begun another transaction. See DONEWITHTRANSACTION on
page 5-6 for a more detailed discussion.
The syntax for this procedure follows:
NEXTINDIRECTFILE
The NEXTINDIRECTFILE exit is called before the first file listed in an indirect file is
opened and when DataLoader/MP goes from one file to another as listed in an indirect
file. If the indirect file is opened because of the -I parameter, FileNum is -1. If the
indirect file is opened because of the -O parameter, FileNum is -2. Otherwise, the
indirect file will have had to have been opened by an explicit call to DTLOpen, and
FileNum will be the same as that returned by DTLOpen.
The syntax for this procedure follows:
The purpose of this exit is to allow feedback so that tasks like incrementing a partition
number field for different output files are easier.
SKIPPING
The SKIPPING exit is called each time DataLoader/MP skips an input record. There
are two reasons for skipping a record: because of the use of the -F parameter or
because of a TMF restart. If the Purpose parameter is 0, it is because of the -F
parameter, and if it is 1, it is because of a TMF restart.
The syntax for this procedure follows:
void NEWTRANSACTION( void )
void NEXTINDIRECTFILE( short* FileNum, char* FileName )
void SKIPPING( short* Purpose, char* Rec, long* RecLen )