Vineet,
It would be nice if you can post a feed back for the prior solutions you got.
You ask a question receive a solution and then disappear until you have a new question. How hard is it to just provide feedback if the solution worked or not?
Any way here is the solution you looking for. Use the following DFSORT/ICETOOL JCL which will give you the desired results
//STEP0100 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD *
BLAH
BLUE
EOF
RED
GREEN
EOF
//OUT DD SYSOUT=*
//TOOLIN DD *
COUNT FROM(IN) HIGHER(0) RC4 USING(CTL1)
//CTL1CNTL DD *
INCLUDE COND=(1,3,CH,EQ,C'EOF')
//*