DataLoader/MX Reference Manual (G06.24+)
Creating a Customized Version of DataLoader/MX
DataLoader/MX Reference Manual—525872-002
5-10
NEWTRANSACTION
The value of Status indicates where the modified record is located. If the modified
record is in RecIn, set Status to 1. If the modified record is in RecOutBuf, set
Status to 2. If MISCn does not modify the record, set Status to anything except 1 or
2.
Both RecIn and RecOutBuf are buffers whose length is RecOutBufLen bytes long.
You can extend the record, even when converting in place in RecIn, provided 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, set Status to 0
(zero).
NEWTRANSACTION
The NEWTRANSACTION exit is called only if you specify the -T parameter, just after
DataLoader/MX has begun another transaction. See DONEWITHTRANSACTION on
page 5-6 for details.
The syntax is:
NEXTINDIRECTFILE
The NEXTINDIRECTFILE exit is called before the first file listed in an indirect file is
opened and when DataLoader/MX 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 is opened by an explicit call to DTLOpen, and FileNum is the same as that
returned by DTLOpen.
The syntax is:
Use this exit 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/MX skips an input record, either
because of the use of the -F parameter or because of a TMF restart. If the Purpose
parameter is 0, it is due to the -F parameter, and if it is 1, it is due to a TMF restart.
The syntax is:
void NEWTRANSACTION( void )
void NEXTINDIRECTFILE( short* FileNum, char* FileName )
void SKIPPING( short* Purpose, char* Rec, long* RecLen )