Home page  
Help >
DDL Command XREF
Version 7.11
DDL Command XREF XREF

XREF is used to obtain any cross reference in the Application and/or Help catalogs. Every reference to the specified token(s) is displayed.

Syntax:
XREF/options [deftype] defname token ... token

Notation standards Options Answers

Options:
S -Token is a substring. i.e., Not necessarily surrounded by blanks.
X -Suppress the command response.
Y -Do not alter the command answer cells.

Answers:
Ctl.Ans1 -Number of definitions scanned
Ctl.Ans2 -Number of definitions that contained the token
Ctl.Ans3 -Zero

Notes:
Deftypes are: P - Procedures When the deftype argument is mis-
M - Menus sing, all deftypes of the Application
R - Reports Catalogare assumed. If you want to
S - Screens direct the XREF to the Help catalog,
H - Help definitions you must supply the deftype H.

The defname argument supports the string and character wildcards, * and ? respectively. The defname argument allows you to focus XREF to particular definition(s). When you intend for the scan to be across all definitions, use the string wildcard * in place of the defname. For examples:

xref p * city The first example scans all procedure definitions
looking for city, and displays the definition names and
xref * city each line in these definitions that contain city.In the
second, since deftype is missing, all definitions (not
xref p sp* xyz just procedure definitions) of the Application Catalog
are scanned, looking for the token city. In the third, the token xyzis looked for, but only in procedure definitions whose names begin with the letters SP.

Without the S option, tokens are blank delimited. Each word of this sentence is a token as there is a blank before and after each. When the intended token is a phrase, you must inclose it in quotes and you must use the S option.

Finally, if the token can be part of a larger string (i.e., not blank delimited), use the S option.
Same as the earlier example except this will find any
xref/s p * city occurrence of citythat is not blank delimited as well
as all occurrences that are. This can be important because in string manipulation expressions you are likely to find variable and fieldnames that are not delimited by blanks.

Copyright © 2019 , WhamTech, Inc.  All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. Names may be trademarks of their respective owners.