chaprola_run_each
Run a compiled program against every record in a data file for scoring, bulk updates, or conditional logic, with optional filtering.
Instructions
Run a compiled .PR program against every record in a data file. Like CHAPRPG from the original SCIOS. Use this for scoring, bulk updates, conditional logic across records.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"file": "<file>",
"program": "<program>"
},
"name": "chaprola_run_each"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Data file to iterate (.DA) | |
| where | No | Optional filter — only run against matching records | |
| program | Yes | Compiled program name (.PR) in the same project | |
| project | Yes | Project name | |
| where_logic | No | How to combine multiple where conditions (default: and) |