Advantage of Load-Template is that it eliminates the need to define separate TPT script for each of the table.

TPT Load-Template

TPT Load-Template is a file consumer which works similar to Fastload utility. Advantage of Load-Template is that it eliminates the need to define separate TPT script for each of the table.

There are five data formats in which data can be loaded using TPT. Please visit TPT-Load page for detail of each format type.
Points to be noted: Since TPT Load-Template is extension of TPT Load, please visit TPT-Load page to get more detail about load related attributes.
  1. Seven basic attributes are mandatory( that are UserName, UserPassword, SelectStmt, Tdpid, FileName, Format and TargetTable) for using TPT Load-Template.
  2. TPT Load-Template eliminate the need of defining 'OPERATOR' separately.
  3. There is no need to define schema as Load-Template generates schema from the target table which can be passed as variable.
  4. Since the Load-Template requires table to be empty, data is first removed from the table if present.
  5. Main difference between Load-Template scripts for 'DELIMITED' and other Formats is the presence of DELIMITED keyword in front of target tablename.
  6. Careful! always define maximum number of sessions(using MaxSessions) that can be allocated to the job, else it may end up taking all the sessions.

Sample Load-Template scripts

Executing Load-Template scripts