Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-14
ADD SOURCE ASSIGN
2. In this example, a new object file is associated with a save file. The new object file
might have been compiled with the SYMBOLS compiler directive; the old one was
not.
or
ADD SOURCE ASSIGN
The ADD SOURCE ASSIGN command adds a source assignment to the current
program’s source assignment list.
When a program is compiled, the fully qualified names of the source files that compose
it are recorded as part of the symbol information. Inspect uses this information to
determine what file to retrieve source text from. If a source file has been moved since
a program was compiled, Inspect will be unable to locate source text to display. The
ADD SOURCE ASSIGN command enables you to inform Inspect where to find source
files when their location has changed.
original-name
specifies the name of a volume, subvolume, file (permanent or temporary), or
process where Inspect would normally look for source code. Note that the volume
name is required for a permanent or temporary file. If omitted, Inspect uses the file
of the current scope. Inspect does not allow you to omit the original-name
when debugging SCOBOL programs.
--ADD PROGRAM zzsa5362 CODE testprog
--ADD PROGRAM zzsa4513 LIB sort
ADD SOURCE ASSIGN [ original-name , ] new-name
original-name: one of
[ \system. ] $volume [ .subvolume [ .file ] ]
[ \system. ] $process [ .#qual-1 [ .qual-2 ] ]
[ \system. ] cpu, pin
[ \system. ] $volume.#number
/oss-pathname [/oss-pathname... ]
new-name: one of
[\system.] $volume [ .subvolume [ .file ] ]
/oss-pathname [/oss-pathname... ]