joogy06/agent-foundry/datastage-developer
Claude Code and agent skill by joogy06/agent-foundry
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Use when developing or administering IBM DataStage — parallel job design, server job patterns, stage types (Transformer/Join/Lookup/Aggregator/Sort/Funnel/Merge), connectors (DB2/Oracle/ODBC/Sequential File/Complex Flat File), parallel framework configuration, job sequencing, performance tuning, scheduling, DataStage on Cloud Pak for Data, and migration from legacy versions. Part of the data-* skill family.
Install
npx vskill@latest install joogy06/agent-foundry/datastage-developerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as joogy06/agent-foundry/datastage-developer.
IBM DataStage — Development & Administration
For enterprise database connectors from Python see: python-enterprise-connectors. For Docker-based deployment see: docker-admin.
<HARD-RULE> Always design parallel jobs with explicit partitioning — relying on auto-partitioning causes unpredictable data distribution and join failures. </HARD-RULE>
<HARD-RULE> Never use server jobs for new development — parallel jobs outperform and are the supported path forward. </HARD-RULE>
<HARD-RULE> Always handle reject links on lookup and connector stages — unhandled rejects silently drop rows. </HARD-RULE>
<HARD-RULE> Never run REORG or DDL on target tables while DataStage bulk loads are active — it causes loader failures and data corruption. </HARD-RULE>
1. Architecture
Information Server Components
IBM Information Server is a three-tier platform:
| Tier | Components | Purpose | |
|---|---|---|---|
| Client | DataStage Designer, Director, Administrator, Manager | Job design, monitoring, administration | |
| Services | WebSphere Application Server (WAS), metadata services, logging | Web console, REST APIs, security, scheduling | |
| Engine | DataStage engine (parallel framework / Orchestrate), connectors | Job execution, data processing |
The XMETA repository (DB2 or Oracle) stores all metadata: job designs, table definitions, column metadata, lineage, operational history, and user/role definitions. Protect XMETA — corruption or loss means losing all job definitions.
Parallel Engine Architecture
The parallel engine (based on Orchestrate/APT) uses a process model:
- Conductor — The master process. Reads the compiled job (OSH), builds the execution graph, coordinates section leaders.
- Section Leader — One per processing node. Manages player processes on its node, handles inter-node communication.
- Player — Worker processes that execute operators (stages). The number of players per node is controlled by the APT_CONFIG_FILE.
APT_CONFIG_FILE
The configuration file defines the runtime topology — how many nodes and partitions the engine uses.
Multi-node (SMP or MPP) configurations add additional node blocks. Each resource disk entry defines one partition — a job using this config file runs with 4 parallel partitions.
Key environment variables:
| Variable | Purpose | |
|---|---|---|
APT_CONFIG_FILE | Path to the parallel config file (mandatory) | |
APT_ORCHHOME | Orchestrate engine install directory | |
APT_PM_PLAYER_MEMORY | Max memory per player process | |
APT_BUFFER_MAXIMUM_MEMORY | Max memory for inter-stage buffering | |
APT_DUMP_SCORE | Set to 1 to dump execution plan (debugging) | |
DS_PROJECT | Current DataStage project path | |
TMPDIR | Temporary directory for sort spills and intermediate data |
2. Parallel Job Design
Canvas Layout Principles
- Data flows left to right: sources on the left, transformations in the center, targets on the right.
- Name stages descriptively:
trn_CleanAddress,lkp_CustomerDim,join_OrderDetail,seq_DailyLoad. - Use annotations to document business rules on the canvas.
- Group related logic into shared containers for reuse across jobs.
Link Types
| Link Type | Purpose | Example | |
|---|---|---|---|
| Input | Feeds data into a stage | Source to Transformer | |
| Output | Emits processed data from a stage | Transformer to target | |
| Reference | Lookup reference data (read-only) | Dimension table feeding Lookup stage | |
| Reject | Captures rows that fail stage processing | Unmatched lookup rows, connector errors |
Data Types
DataStage parallel data types map to SQL types:
| DS Type | SQL Equivalent | Notes | |
|---|---|---|---|
VarChar(n) | VARCHAR(n) | Variable-length string | |
Char(n) | CHAR(n) | Fixed-length, padded | |
Int32 | INTEGER | 32-bit signed integer | |
Int64 | BIGINT | 64-bit signed integer | |
Decimal(p,s) | DECIMAL(p,s) | Exact numeric, use for money | |
Float | FLOAT | Avoid for financial data | |
Double | DOUBLE | Avoid for financial data | |
Date | DATE | YYYY-MM-DD | |
Time | TIME | HH:MM:SS | |
Timestamp | TIMESTAMP | Date + time + fractional seconds |
Runtime Column Propagation (RCP)
RCP automatically passes columns through stages without explicit mapping. Enable it on links where you want pass-through behavior (e.g., a Transformer that only adds/modifies a few columns). Disable RCP when you need strict control over output schema.
Partitioning
Partitioning distributes data across players. Choose explicitly based on the downstream operation:
| Method | Use When | Example | |
|---|---|---|---|
| Hash | Pre-partitioning for Join/Lookup/Aggregator/Remove Duplicates | Hash on join key before Join stage | |
| Modulus | Even numeric key distribution | Partition by customer_id % N | |
| Range | Data must be in sorted ranges | Range partition + sort for merge | |
| Random | Even distribution, no key preference | Feeding a Transformer with no grouping | |
| Round Robin | Strict even distribution | Balancing load across partitions | |
| Same | Data is already correctly partitioned | After a Hash partition, before next stage using same key | |
| Entire | Every partition gets all rows | Broadcasting a small reference table | |
| DB2 | Match DB2 table's physical partitioning | Reading from partitioned DB2 tables |
Collecting
Collecting merges partitioned data back to a single partition or fewer partitions:
| Method | Purpose | |
|---|---|---|
| Gather | Concatenate partitions (order not guaranteed) | |
| Sort/Merge | Collect and sort — use when output must be ordered | |
| Round Robin | Pull from partitions in round-robin fashion |
Pipeline vs Partition Parallelism
- Partition parallelism: Multiple players process different slices of data simultaneously through the same operator. Controlled by APT_CONFIG_FILE partition count.
- Pipeline parallelism: Upstream stages feed data to downstream stages concurrently. Rows flow through the pipeline without waiting for all upstream processing to complete. Happens automatically in the parallel engine.
Both forms operate simultaneously for maximum throughput.
3. Key Stages
Transformer Stage
The workhorse of DataStage. Handles column derivations, data type conversions, conditional logic, and null handling.
Derivation patterns:
Stage variables execute top-to-bottom before derivations. Use them for:
- Intermediate calculations reused in multiple output columns
- Row counters and running totals
- Complex conditional logic broken into steps
Null handling rules:
IsNull(column)— test for null before usingSetNull()— assign null to output columnNullToValue(column, default)/NullToZero(column)— replace nulls- Any arithmetic or string operation on a null returns null — always guard
Join Stage
Combines two or more sorted inputs on matching keys.
| Join Type | Rows Returned | |
|---|---|---|
| Inner | Only matching rows from both inputs | |
| Left Outer | All left rows + matching right rows (nulls for non-matches) | |
| Right Outer | All right rows + matching left rows | |
| Full Outer | All rows from both inputs |
Requirements:
- Inputs MUST be sorted on join keys (or partitioned by hash on join key with sort within partition)
- Partition both inputs identically using Hash on the join key columns
- Join keys must be the same data type on both sides
Lookup Stage
Retrieves reference data to enrich or validate records. More flexible than Join for many scenarios.
Reference link behavior:
- Reference data is loaded into memory (or cache) at stage startup
- Main input stream is matched against reference data
- Multiple reference links supported (chained lookups)
Caching options:
| Mode | When to Use | |
|---|---|---|
| Normal (in-memory) | Reference dataset fits in memory (default) | |
| Sparse | Large reference — only cache recently accessed rows (issues DB query per miss) |
Multiple matches handling:
- First match (default)
- Last match
- All matches (generates multiple output rows per input)
- Reject on multiple matches
Always add a reject link — unhandled lookup failures silently drop rows. Route rejects to a log or error table.
Aggregator Stage
Groups rows and computes aggregates: SUM, COUNT, MIN, MAX, AVG, FIRST, LAST, COUNT DISTINCT.
Partitioning: Hash partition on the grouping key before the Aggregator for correct results.
Supports pre-aggregation — the engine aggregates within each partition first, then merges partial results. Reduces inter-partition data movement.
Sort Stage
Sorts data within partitions. Controls:
- Sort key columns and direction (ascending/descending)
- Stable sort (preserves order of equal keys)
- Allow duplicates / create key change column
- Sort utility: DataStage sort (default) or Unix sort (for very large datasets with spill-to-disk)
Performance tips:
- Sort only when required (Joins need sorted input; many other stages do not)
- Set
TMPDIRto fast local disk for sort spills - Increase
APT_BUFFER_MAXIMUM_MEMORYif sort spills excessively
Funnel Stage
Combines multiple inputs into a single output.
| Mode | Behavior | |
|---|---|---|
| Continuous | Round-robin read from all inputs (no ordering guarantee) | |
| Sequence | Read inputs in port order (all of input 0, then all of input 1, etc.) | |
| Sort | Merge-sort from pre-sorted inputs (all inputs must be sorted on same key) |
Use Sort mode when feeding a downstream stage that requires sorted input. Use Continuous for maximum throughput when order does not matter.
Merge Stage
Combines rows from a master input and one or more update inputs based on matching keys. Supports update, insert, and reject processing:
- Matched rows: update master with update values
- Unmatched master rows: pass through
- Unmatched update rows: route to reject or insert
Both master and update inputs must be sorted on the merge key.
Filter Stage
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/datastage-developer/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/joogy06/agent-foundry/datastage-developer)