The LOAD utility can directly load the output of a dynamic SQL SELECT statement into a table. The dynamic SQL statement can be executed on data at a local server or at any remote server that complies with DRDA. This functionality is called the Db2 family cross-loader function.
Hello @sergeyken .. Thanks for your sort card and Christmas gift , I was looking more of a DB2 LOAD utility though..
Do you/ anyone have idea on this using DB2 LOAD utility card?
AFAIK the LOAD utility has no option to filter data from input SYSREC DD.
There is LOAD ... IGNORE WHEN ... option, but only in the following forms:
Quote:
WHEN - Specifies that records that do not satisfy the WHEN clause are ignored.
- PART Specifies that records that do not satisfy any partition being loaded are ignored.
- CONV Specifies that records that cause a conversion error are ignored.
- VALPROC Specifies that records that fail a validation procedure are ignored.
- IDERROR Specifies that records that have an identity column value that is out of range are ignored.
- DUPKEY Specifies that records that cause a duplicate key error are ignored.
It seems these options are not what you need, though I did not try using any of them.