Thank you for your response.
Could it be possible to set the Return Codes using the ISPF SRCHFOR? If so, Could you please inform how can I achieve that?
If not, then is my below understanding about it correct?
//SEARCH EXEC PGM=ISRSUPC,PARM=(SRCHCMP,ANYC)
//NEWDD DD DISP=SHR,DSN=ABC.DEF.GHI
//OUTDD DD DISP=OLD,DSN=ABC.DEF.GHI.OUT
//SYSIN DD *
JCL will return code 00 when there is no occurrence of the string and 01 when there is at least one occurrence...