I want to create a REXX routine that accepts a COPYBOOK name as input from the user. Then compile and link all the COBOL modules where this COPYBOOK is used. Please suggest a good way of doing it.
if Your organization has a development environment with a Change management tool,
it should be semi automatic ( it is with SCLM )
apply a dummy update ( like add a comment line ) and SCLM will happily recompile all the sources depending on that copy book.
if You want to do it Yourself ( long task ) look at the ISPF member list utility
( it will cross reference the user and the where_used )