Rejecting Null records

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Just for grins...

The Left() adds nothing, the assignment is unneeded and the values are 'backwards' IMHO. I personally would name the stage variable something like svIsEmpty and the expression would automatically evalute to "true" or "false" where true would indicate it is, in fact, null or empty:

Code: Select all

Trim(NullToEmpty(column))=''
Then your reject constraint would be simply "svIsEmpty".
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply