I did this by using a filter. In fact, I performed this steps:
- Create a HPL project:
onpladm create project projectName
- Create a HPL job:
onpladm create job jobName -p jobProject -D databaseName -t tableName -d "/respaldo/hpl/outputFileName.unl"
- Create a filter, first I create a file named filterFile.f with this template:
BEGIN OBJECT FILTER filterName
PROJECT "projectName"
FORMAT "tableName"
BEGIN SEQUENCE
FIELDNAME "columnName"
STATUS "K"
MATCH Sentence
END SEQUENCE
END OBJECT
Example of line of "MATCH Sentence", replace Sentence for " > 260", It means that it unload the rows whose columnName are greater than 260
Then you have to create the filter:
onpladm create object -F filterFile.f
- Execute the job:
onpload -p projetName -j jobName -fl -F filterName -l "pathLog"
pathlog = file for saving the results of onpload execution