Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Clipper search across specifically named files

Clipper search across specifically named files

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


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?


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


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 18:18
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.