joogy06/agent-foundry/datastage-developer

Claude Code and agent skill by joogy06/agent-foundry

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

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-developer

Semi-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:

TierComponentsPurpose
ClientDataStage Designer, Director, Administrator, ManagerJob design, monitoring, administration
ServicesWebSphere Application Server (WAS), metadata services, loggingWeb console, REST APIs, security, scheduling
EngineDataStage engine (parallel framework / Orchestrate), connectorsJob 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.
Conductor
├── Section Leader (node1)
│ ├── Player 0 (partition 0)
│ ├── Player 1 (partition 1)
│ └── Player 2 (partition 2)
└── Section Leader (node2)
├── Player 3 (partition 3)
├── Player 4 (partition 4)
└── Player 5 (partition 5)
APT_CONFIG_FILE

The configuration file defines the runtime topology — how many nodes and partitions the engine uses.

// Single-node, 4 partitions
{
node "node1"
{
fastname "server01"
pools ""
resource disk "/ds_scratch/part0" {pools ""}
resource disk "/ds_scratch/part1" {pools ""}
resource disk "/ds_scratch/part2" {pools ""}
resource disk "/ds_scratch/part3" {pools ""}
resource scratchdisk "/ds_scratch/part0" {pools ""}
resource scratchdisk "/ds_scratch/part1" {pools ""}
resource scratchdisk "/ds_scratch/part2" {pools ""}
resource scratchdisk "/ds_scratch/part3" {pools ""}
}
}

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:

VariablePurpose
APT_CONFIG_FILEPath to the parallel config file (mandatory)
APT_ORCHHOMEOrchestrate engine install directory
APT_PM_PLAYER_MEMORYMax memory per player process
APT_BUFFER_MAXIMUM_MEMORYMax memory for inter-stage buffering
APT_DUMP_SCORESet to 1 to dump execution plan (debugging)
DS_PROJECTCurrent DataStage project path
TMPDIRTemporary 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 TypePurposeExample
InputFeeds data into a stageSource to Transformer
OutputEmits processed data from a stageTransformer to target
ReferenceLookup reference data (read-only)Dimension table feeding Lookup stage
RejectCaptures rows that fail stage processingUnmatched lookup rows, connector errors
Data Types

DataStage parallel data types map to SQL types:

DS TypeSQL EquivalentNotes
VarChar(n)VARCHAR(n)Variable-length string
Char(n)CHAR(n)Fixed-length, padded
Int32INTEGER32-bit signed integer
Int64BIGINT64-bit signed integer
Decimal(p,s)DECIMAL(p,s)Exact numeric, use for money
FloatFLOATAvoid for financial data
DoubleDOUBLEAvoid for financial data
DateDATEYYYY-MM-DD
TimeTIMEHH:MM:SS
TimestampTIMESTAMPDate + 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:

MethodUse WhenExample
HashPre-partitioning for Join/Lookup/Aggregator/Remove DuplicatesHash on join key before Join stage
ModulusEven numeric key distributionPartition by customer_id % N
RangeData must be in sorted rangesRange partition + sort for merge
RandomEven distribution, no key preferenceFeeding a Transformer with no grouping
Round RobinStrict even distributionBalancing load across partitions
SameData is already correctly partitionedAfter a Hash partition, before next stage using same key
EntireEvery partition gets all rowsBroadcasting a small reference table
DB2Match DB2 table's physical partitioningReading from partitioned DB2 tables
Collecting

Collecting merges partitioned data back to a single partition or fewer partitions:

MethodPurpose
GatherConcatenate partitions (order not guaranteed)
Sort/MergeCollect and sort — use when output must be ordered
Round RobinPull 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:

// Simple column mapping
input.CustomerName
// Conditional logic
If input.Status = "A" Then "Active" Else "Inactive"
// Null handling (critical — nulls propagate silently)
If IsNull(input.Phone) Then "UNKNOWN" Else input.Phone
// String functions
Trim(input.Name) : " " : Trim(input.Surname)
// Date conversion
DateFromDaysSince(0, StringToDate(input.DateStr, "%yyyy-%mm-%dd"))
// Numeric conversion
DecimalToDecimal(input.Amount, "fix_zero")
// Stage variable (calculated once per row, reused in multiple derivations)
svFullName = Trim(input.FirstName) : " " : Trim(input.LastName)

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 using
  • SetNull() — assign null to output column
  • NullToValue(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 TypeRows Returned
InnerOnly matching rows from both inputs
Left OuterAll left rows + matching right rows (nulls for non-matches)
Right OuterAll right rows + matching left rows
Full OuterAll 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
// Typical pattern: Hash partition on key → Sort → Join
Source_A → [Hash partition on cust_id] → [Sort on cust_id] → Join_Inner
Source_B → [Hash partition on cust_id] → [Sort on cust_id] → Join_Inner
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:

ModeWhen to Use
Normal (in-memory)Reference dataset fits in memory (default)
SparseLarge 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.

// Group by Region, calculate total sales
Group Key: Region
Total_Sales = SUM(input.SaleAmount)
Order_Count = COUNT(input.OrderId)
Avg_Order = AVG(input.SaleAmount)

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 TMPDIR to fast local disk for sort spills
  • Increase APT_BUFFER_MAXIMUM_MEMORY if sort spills excessively
Funnel Stage

Combines multiple inputs into a single output.

ModeBehavior
ContinuousRound-robin read from all inputs (no ordering guarantee)
SequenceRead inputs in port order (all of input 0, then all of input 1, etc.)
SortMerge-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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/joogy06/agent-foundry/datastage-developer/badge)](https://verified-skill.com/skills/joogy06/agent-foundry/datastage-developer)

Something wrong with this skill or its page? Tell us.