Either copying or printing a member based on some condition inside the member

This example shows how to selectively copy or print a member based on some condition inside the member.

Example

Copy all members which contain the character string Hello Mom (with any letter in uppercase or lowercase).

FASTREXX:
/* Requires option MEMPROC=DROP */
If FLD_CO( 1, 0, "U", "HELLO MOM" ) Then RETURN PROCESS MEMBER

REXX:

(Same as FASTREXX)

DFSORT:

Not applicable.