Symbol Where Used (SWU) report

The Symbol Where Used (SWU) report lists all symbols referenced within the source and type of reference.

On CMS ASMXREF creates the SWU in a file named filename OUTSWU A, where filename is the name of the control file.

on z/OS®, the default name for the SWU, defined in the procedure supplied with ASMXREF, is userid.XREFOUT.SWU.

On z/VSE® the SWU is printed from SYSPRT.

The symbols can be variables or macros identified with the following flags:
Comparison
ASMXREF recognizes the symbol is a comparison.
Definition
ASMXREF recognizes that the symbol is declared in that particular module.
External Ref
ASMXREF recognizes the symbol is an external reference.
Label
ASMXREF recognizes the symbol as a label.
Macro
ASMXREF recognizes the symbol as a macro call.
Parameter
ASMXREF recognizes the symbol is a parameter.
Read
ASMXREF recognizes that the symbol is used in expressions but does not name locations.
Write
ASMXREF recognizes that the symbol name is used as the target of an operation.
#
Number.
Figure 1. Sample Symbol Where Used (SWU) report (part 1 of 2)
 Date: 07/11/2008     ASMXREF  V1.6.0  Symbol Where Used Report           Page    1
 Time: 12:09:28        Symbol to Module Map - All Symbols (SYM)


 Symbol
    Module                                                            Access         #

 &SYS
    ASMTEST ASSEMBLE  ...............................................      D         1

 A
    ASMTEST ASSEMBLE  ...............................................     P          1

 ANY
    ASMTEST ASSEMBLE  ...............................................  R             1

 ASMHSAVE
    ASMTEST ASSEMBLE  ...............................................  R   D         2

 ASMTEST
    ASMTEST ASSEMBLE  ............................................... LR             6

 BEGIN
    ASMTEST ASSEMBLE  ............................................... L              2

 BIN
    ASMTEST ASSEMBLE  ...............................................     P          1

 CHAIN
    ASMTEST ASSEMBLE  ............................................... L              1

 DATWORK
    ASMTEST ASSEMBLE  ...............................................  R   D         2

 DBLWORK
    ASMTEST ASSEMBLE  ...............................................  RW  D         4

 DD
    ASMTEST ASSEMBLE  ............................................... L W            2

 E
    ASMTEST ASSEMBLE  ...............................................     P          1

 EXIT
    ASMTEST ASSEMBLE  ............................................... L              1

 FREEMAIN
    ASMTEST ASSEMBLE  ...............................................  R     M       1

 GETMAIN
    ASMTEST ASSEMBLE  ...............................................  R     M       1

 L
    ASMTEST ASSEMBLE  ...............................................     P          1
 ---------------------------------------------------------------------------------
   C = Comparison       D = Definition    E = External Ref     K = Class   L = Label
   M = Macro/Func/Inc   O = Object        P = Parameter        R = Read    W = Write
Figure 2. Sample Symbol Where Used (SWU) report (part 2 of 2)

 Date: 07/11/2008     ASMXREF  V1.6.0  Symbol Where Used Report           Page    2
 Time: 12:09:28        Symbol to Module Map - All Symbols (SYM)


 Symbol
    Module                                                            Access         #

 LENWORK
    ASMTEST ASSEMBLE  ............................................... LR             3

 LINKAGE
    ASMTEST ASSEMBLE  ...............................................     P          2

 LV
    ASMTEST ASSEMBLE  ...............................................     P          2

 MF
    ASMTEST ASSEMBLE  ...............................................     P          2

 MM
    ASMTEST ASSEMBLE  ...............................................   W  D         2

 PARMS
    ASMTEST ASSEMBLE  ............................................... LR             2

 R
    ASMTEST ASSEMBLE  ...............................................     P          2

 RETURN
    ASMTEST ASSEMBLE  ............................................... L              1

 R0
    ASMTEST ASSEMBLE  ...............................................   W  D         3

 R1
    ASMTEST ASSEMBLE  ...............................................  RW  D         4

 R10
    ASMTEST ASSEMBLE  ...............................................      D         1

 R11
    ASMTEST ASSEMBLE  ...............................................  RW  D         3

 R12
    ASMTEST ASSEMBLE  ...............................................  RW  D         5

 R13
    ASMTEST ASSEMBLE  ...............................................  RW  D        11

 R14
    ASMTEST ASSEMBLE  ............................................... LRW  D         4

 R15
    ASMTEST ASSEMBLE  ...............................................  RW  D         5
 ---------------------------------------------------------------------------------
   C = Comparison       D = Definition    E = External Ref     K = Class   L = Label
   M = Macro/Func/Inc   O = Object        P = Parameter        R = Read    W = Write
Figure 3. Sample SWU sorted via SYMC
 Date: 07/11/2008     ASMXREF  V1.6.0  Symbol Where Used Report                                       Page    1
 Time: 12:19:34        Symbol to Module Map - All Symbols (SYMC)

 Symbol                Module   Access     Module   Access     Module   Access     Module   Access     Module   Access
 -------------------------------------------------------------------------------------------------------------------------
 &SYS                  ASMTEST       D
 A                     ASMTEST      P
 ANY                   ASMTEST   R
 ASMHSAVE              ASMTEST   R   D
 ASMTEST               ASMTEST  LR
 BEGIN                 ASMTEST  L
 BIN                   ASMTEST      P
 CHAIN                 ASMTEST  L
 DATWORK               ASMTEST   R   D
 DBLWORK               ASMTEST   RW  D
 DD                    ASMTEST  L W
 E                     ASMTEST      P
 EXIT                  ASMTEST  L
 FREEMAIN              ASMTEST   R     M
 GETMAIN               ASMTEST   R     M
 L                     ASMTEST      P
 LENWORK               ASMTEST  LR
 LINKAGE               ASMTEST      P
 LV                    ASMTEST      P
 MF                    ASMTEST      P
 MM                    ASMTEST    W  D
 PARMS                 ASMTEST  LR
 R                     ASMTEST      P
 RETURN                ASMTEST  L
 R0                    ASMTEST    W  D
 R1                    ASMTEST   RW  D
 R10                   ASMTEST       D
 R11                   ASMTEST   RW  D
 R12                   ASMTEST   RW  D
 R13                   ASMTEST   RW  D
 R14                   ASMTEST  LRW  D
 R15                   ASMTEST   RW  D
 R2                    ASMTEST       D
 R3                    ASMTEST   RW  D
 R4                    ASMTEST       D
 R5                    ASMTEST       D
 R6                    ASMTEST       D
 R7                    ASMTEST       D
 R8                    ASMTEST       D
 R9                    ASMTEST       D
 SYSTEM                ASMTEST      P
 TIME                  ASMTEST   R     M
 TIMEMFL               ASMTEST  LR
 TIMWORK               ASMTEST   RW  D
 WORKAREA              ASMTEST  LR
 WTO                   ASMTEST  LR     M
 WTOMSG                ASMTEST    W  D
 YY                    ASMTEST  L W
 -------------------------------------------------------------------------------------------------------------------------
 Access Keys: C=Comparison D=Definition E=External K=Class L=Label M=Macro O=Object P=Parameter R=Read W=Write