Skip to main content

This article addresses a Clipper search that will only apply to specifically named files (Cobol File or Copybook File).

Problem:

I am looking for a specific variable or declaration and only want the search to apply across specifically named files. One example would be to exclude certain programs or copybooks from the search based on their name. Can this be done?

Resolution:

Clipper searches have a specific attribute called File Name that allows for entities to be associated with the source file in which they are located. Adding this attribute can help restrict searches to specifically named files. The File Name is the full path of the source file as it appears when loaded into Modernization Workbench. Therefore, the File Name attribute will need to include SOURCES\\”Entity Name”\\ where Entity Name is the appropriate entity such as COPYBOOK or COBOL.

Below is a sample Clipper query that makes use of the File Name attribute.

Find Declaration

such that File Name = "SOURCES\\COPYBOOK\\TEST.CPY"

Old KB# 14825

#SupportTip
#EnterpriseAnalyzer