I have defined a field in the Subfile control record and defined the error message ERRMSG and conditioned it with indicator. Now when the indicator is on error messsage is not displayed on subfile.
Below is the DDS code.
A SVEND R Y B 4 66REFFLD(VENDOR/VVEND PMS054/VENDPF)
A 70 ERRMSG('invalid vendor number')
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!