Programming Productivity Tools
C.5 Language-Sensitive Editor (LSE) and the Source Code Analyzer (SCA) (OpenVMS)
SCA performs the following types of program analysis:
•
Cross-referencing, which supplies information about program symbols and
source files
•
Static analysis, which provides information on how subprograms, symbols,
and files are related
LSE and SCA together, in conjunction with compilers for supported languages,
provide the following software design features:
•
View support, which provides a reverse-design facility. LSE commands
compress program code into overview line summaries. If you choose to edit
these overview lines, the program code reflects the modifications you make.
•
A report tool, callable through LSE, which can print views, standard design
reports, and customized reports.
C.5.1 Notes on Compaq COBOL Support
Compaq COBOL supports the LSE and SCA program creation, analysis, and
compilation features described in the preceding sections. Compaq COBOL does
not support the LSE Program Design Facility (PDF) design comments, pseudocode
placeholders, or the /DESIGN qualifier.
The following sections provide entry, exit, and language-specific information on
the combined use of LSE and SCA.
For More Information:
•
On LSE–See the Guide to Language-Sensitive Editor.
•
On SCA–See the Guide to Source Code Analyzer for VMS Systems.
•
On CMS–See the Guide to Code Management System for VMS Systems.
C.5.2 Preparing an SCA Library
SCA stores data generated by the Compaq COBOL compiler in an SCA library.
The data in an SCA library contains information about all symbols, modules, and
files encountered during a specific compilation of the source. You must prepare
this library before you enter LSE to invoke SCA by following these steps:
1.
Create a directory for your SCA library. For example:
$ CREATE/DIRECTORY PROJ:[USER.LIB1]
2.
Initialize and set the library with the SCA CREATE LIBRARY command. For
example:
$ SCA CREATE LIBRARY [.LIB1]
If you have an existing SCA library that has been initialized, you make its
contents visible to SCA by setting it with the SCA SET LIBRARY command.
For example:
$ SCA SET LIBRARY [.EXISTING_SCA_LIBARAY]
A message appears in the message buffer at the bottom of your screen,
indicating whether or not your SCA library selection succeeded.
3.
Direct the COBOL compiler to generate data analysis files by appending the
/ANALYSIS_DATA qualifier to the COBOL command. For example:
$ COBOL/ANALYSIS_DATA PG1,PG2,PG3
C–14 Programming Productivity Tools
Содержание COBOL AAQ2G1FTK
Страница 22: ......
Страница 30: ......
Страница 94: ......
Страница 110: ......
Страница 146: ......
Страница 180: ......
Страница 194: ...Processing Files and Records 6 1 Defi...
Страница 300: ......
Страница 490: ......
Страница 516: ......
Страница 517: ......
Страница 530: ......
Страница 534: ......
Страница 590: ......
Страница 620: ......