JPH0338736A - Counting device for number of lines of cobol source program - Google Patents
Counting device for number of lines of cobol source programInfo
- Publication number
- JPH0338736A JPH0338736A JP1175231A JP17523189A JPH0338736A JP H0338736 A JPH0338736 A JP H0338736A JP 1175231 A JP1175231 A JP 1175231A JP 17523189 A JP17523189 A JP 17523189A JP H0338736 A JPH0338736 A JP H0338736A
- Authority
- JP
- Japan
- Prior art keywords
- lines
- source program
- source
- search target
- program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 claims abstract description 19
- 238000010586 diagram Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、COBOLソースプログラム行数カウント装
置に関し、特に業務システムを構成するプログラム群の
統計情報収集において、容易にソース行数のカウントを
行なう行数カウント装置に関する。[Detailed Description of the Invention] [Industrial Field of Application] The present invention relates to a COBOL source program line counting device, and in particular, to easily count the number of source lines when collecting statistical information on a group of programs constituting a business system. This invention relates to a line counting device.
業務システムを構成するプログラム群の規模を測定する
には、ソースプログラム行数のカウントを行う必要があ
り、その結果は、現行業務システムの分析及びそれ以降
の業務システムを設計するにあたって工数算定を行なう
際の有効な資料となり得る。In order to measure the scale of the programs that make up a business system, it is necessary to count the number of lines in the source program, and the results are used to calculate the man-hours for analyzing the current business system and designing subsequent business systems. It can be a useful material at the time of the event.
従来、C0BOLプログラムソ一ス行数の統計情報収集
は、調査者がソースリストをもとに手作業によって行な
うのが慣例となっていた。Conventionally, statistical information on the number of COBOL program source lines has been collected manually by an investigator based on a source list.
上述した従来の方法では、調査者の手作業に依存されて
いる為、対象ンースプログラム行数及び本数が多くなる
ほど調査に要する時間も増大し、ミスも発生しやすくな
るという欠点がある。The above-mentioned conventional method relies on the manual work of the investigator, so the disadvantage is that the longer the number of lines and files in the target program increases, the more time it takes to investigate, and the more mistakes are likely to occur.
本発明のCOBOLソースプログラム行数カウント装置
は、COBOLソースプログラム行数カウントを行なう
対象となるソースプログラムを指示するパラメータ情報
を入力する手段と、入力されたパラメータ情報を解析す
る手段と、解析手段により決定された検索対象ソースプ
ログラム情報を検索対象指示テーブルに格納する手段と
、検索対象指示テーブルの情報に従って、ソースライブ
ラリより検索対象のソースプログラムを入力する手段と
、検索対象のソースプログラムを記憶する手段と、検索
対象のソースプログラムのデータ部、手続き部の範囲の
チェック及びソースプログラム中の空白行、注釈行のチ
ェックを行ない、データ部行数2手続き部側数、トータ
ルソース行数のカウントを行なう手段と、カウントされ
た上記データを出力装置へ編集出力させる手段とを有す
る。The COBOL source program line count device of the present invention includes means for inputting parameter information indicating a source program to be subjected to COBOL source program line count, means for analyzing the input parameter information, and analysis means. means for storing determined search target source program information in a search target instruction table; means for inputting a search target source program from a source library according to the information in the search target instruction table; and means for storing the search target source program. Then, the range of the data division and procedure division of the source program to be searched is checked, the blank lines and comment lines in the source program are checked, and the number of lines in the data division, number in the procedure division, and total number of source lines are counted. and means for editing and outputting the counted data to an output device.
次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例を示す。第1図において、本
発明の一実施例は入力装置1−1と出力装置1−9とを
含み、C0BOLソースプログラムの行数を計数するC
0DOLソースプログラムカウント装置で、C0DOL
ソ一スプログラム行数カウントを行なう対象となるソー
スプログラムを指示するパラメータ情報を入力する第1
の入力手段1−2と、入力されたパラメータ情報を解析
する解析手段1−3と、解析手段により決定された検索
対象ソースプログラム情報を検索対象指示テーブルに格
納する手段1−4と、検索対象指示テーブルの情報に従
って、ソースライブラリより検索対象のソースプログラ
ムを入力する第2の入力手段1−5と、検索対象のソー
スプログラムを記憶する記憶手段1−6と、検索対象の
ソースプログラムのデータ部1手続き部の範囲のチェッ
ク及びソースフログラム中の空白行、注釈行のチェック
を行ない、データ部行数1手続き部側数、トータルソー
ス行数のカウントを行なう処理手段1−7と、カウント
された上記データを出力装置へ編集出力させる出力手段
1−8とを含む。FIG. 1 shows an embodiment of the invention. In FIG. 1, one embodiment of the present invention includes an input device 1-1 and an output device 1-9, and a C0BOL source program for counting the number of lines of a C0BOL source program.
0DOL source program counting device, C0DOL
The first step is to input parameter information that specifies the source program for which the number of source program lines is to be counted.
an input means 1-2, an analysis means 1-3 for analyzing input parameter information, a means 1-4 for storing search target source program information determined by the analysis means in a search target instruction table, and a search target a second input means 1-5 for inputting the source program to be searched from the source library according to information in the instruction table; a storage means 1-6 for storing the source program to be searched; and a data section of the source program to be searched. Processing means 1-7 which checks the range of 1 procedure division, checks blank lines and comment lines in the source program, counts the number of data division lines, 1 procedure division side number, and the total number of source lines; and output means 1-8 for editing and outputting the data to an output device.
第2図は、パラメータ情報レコードレイアウトの内容を
示す。第2図において、本実施例に用いるパラメータフ
ァイルは1桁のプ□グラム名指定開始カラム位置と、1
桁のプログラム名指定桁数と、6桁のプログラム名指定
エリアと、残りのデータエリアとから構成されている。FIG. 2 shows the contents of the parameter information record layout. In Figure 2, the parameter file used in this example includes a 1-digit program name specification start column position and a 1-digit program name specification start column position.
It consists of a program name designation digit number of digits, a 6-digit program name designation area, and the remaining data area.
入力装置1−1は、入力手段1−2で使用するパラメー
タ情報、入力手段1−5で使用するソースプログラムラ
イブラリが格納されている装置である。入力手段1−2
は、入力装置1−1よりパラメータ情報を入力する手段
である。解析手段1−3は、入力手段1−2で入力され
たパラメータ情報を解析し検索対象ソースプログラムを
判定する手段である。検索対象指示テーブル1−4は、
解析手段1−3で判定された検索対象ソースプログラム
の情報を格納するものである。入力手段15は、1−4
検索対象指示テーブルの格納情報に従って入力装置1−
1のソースライブラリより検索対象のソースプログラム
を入力する手段である。記憶手段1−6は、入力手段1
−5で入力された検索対象ソースプログラムを一時的に
保持する手段である。処理手段1−7は記憶手段1−6
によって保持されている検索対象ソースプログラムを入
力し、空白行、注釈行のチェック及びデータ部2手続き
部の範囲判定を行ない、空白行、注釈行を含むトータル
ソース行数、データ部行数、手続き部行数、空白行、注
釈行を除いた実際処理にかかわっているトータルソース
行数、データ部行数、手続き部行数のカウントを行なう
手段である。出力手段1−8は、処理手段1−7によっ
て得られたデータをソースプログラム名と対応させて見
やすい形に編集して出力させる手段である。The input device 1-1 is a device in which parameter information used by the input means 1-2 and a source program library used by the input means 1-5 are stored. Input means 1-2
is means for inputting parameter information from the input device 1-1. The analysis means 1-3 is a means for analyzing the parameter information inputted by the input means 1-2 and determining the source program to be searched. The search target instruction table 1-4 is
Information about the search target source program determined by the analysis means 1-3 is stored. The input means 15 is 1-4
Input device 1- according to the information stored in the search target instruction table
This is means for inputting a source program to be searched from the source library No. 1. The storage means 1-6 is the input means 1
This is means for temporarily holding the search target source program input in step -5. Processing means 1-7 is storage means 1-6
Inputs the search target source program held by , checks for blank lines and comment lines, and determines the range of the data division 2 procedure division, and calculates the total number of source lines including blank lines and comment lines, the number of data division lines, and procedures. This is a means for counting the total number of source lines, data division lines, and procedure division lines involved in actual processing, excluding the number of copy lines, blank lines, and comment lines. The output means 1-8 is a means for editing and outputting the data obtained by the processing means 1-7 into an easily viewable form in correspondence with the source program name.
出力装置1−9は、出力手段1−8によって編集出力さ
れた結果が実際にアウトプットされる装置6
である。The output device 1-9 is a device 6 to which the results edited and output by the output means 1-8 are actually output.
次に、第1図と第2図をもとに本発明の一実施例の動作
を説明する。まず第2図で示すパラメータ情報を第1図
入力装置1−1より入力手段12で入力を行なう。次に
解析手段1−3で入力されたパラメータ情報の解析を行
なう。解析例としては“99△△△△△△”″ (△は
空白を示す)の場合、入力手段1−5で入力を行なうソ
ースライブラリ中の全ソースプログラムを行数カウント
の対象とし、”12FG△△△△″の場合、ソースライ
ブラリ中のプログラム名士2桁が“FG″のソースプロ
グラムを行数カウントの対象とする旨の検索対象ソース
プログラム情報を検索対象指示テーブル1−4に格納す
る。次に入力手段1−5で前記の検索対象ンースプログ
ラム情報をもとにして、入力装置1−1より行数カウン
トの検索対象となるソースプログラムをソースライブラ
リより入力し、記憶手段1−6で、メモリ上に一時的に
保持する。次に処理手段1−7で検索対象ソースプログ
ラムをメモリ上より1レコードずつ読み込み、空白行、
注釈行の有無のチェックを行ない、それぞれの場合に従
って、空白行、注釈行有りトータルソース行カウント、
空白行、注釈行無しトータルソース行カウントを1ずつ
増やしていく。Next, the operation of one embodiment of the present invention will be explained based on FIGS. 1 and 2. First, the parameter information shown in FIG. 2 is inputted by the input means 12 from the input device 1-1 in FIG. Next, the input parameter information is analyzed by the analysis means 1-3. As an analysis example, in the case of "99△△△△△△"" (△ indicates a blank), all source programs in the source library input using input means 1-5 are subject to line count, and "12FG In the case of "ΔΔΔΔΔ", search target source program information indicating that the source program with the program name "FG" in the second digit in the source library is to be targeted for line count is stored in the search target instruction table 1-4. Next, based on the search target source program information, input means 1-5 inputs a source program to be searched for line count from the input device 1-1 from the source library, and the storage means 1-5 Then, the processing means 1-7 reads the source program to be searched record by record from the memory, blank lines,
The presence or absence of comment lines is checked, and depending on each case, blank lines, total source line count with comment lines,
Increment the total source line count by 1 for blank lines and no comment lines.
(空白行、注釈行は実際の処理に影響しない部分であり
、空白行、注釈行の有無のカウントを行なうという事は
、実際の処理に関係する部分だけのソース行、関係しな
い部分も含めたソース行のカウントといえる)同時に、
データ部2手続き部の始まりを示すレコードを見つけた
場合、それぞれデータ部ソース行カウント、手続き部ソ
ース行カウントを1ずつ増やしていく。データ部2手続
き部の終わりを示すレコードを見つけた場合それぞれの
カウントを終了させる。手続き部の終わりは、ソースプ
ログラムの終わりでもあるので、空白行、注釈行有りト
ータルソース行カウント、空白行、注釈行無しトータル
ソース行カウントの処理も終了させる。次に得られた各
ソース行カウントを出力手段1−8によって利用者に見
やすい形式に編集出力させる。その後、検索対象のソー
スプログラムが検出されない場合、出力手段1−8によ
って得られた編集出力結果を出力装置1−9へ出力させ
る。(Blank lines and comment lines are parts that do not affect the actual processing, and counting the presence or absence of blank lines and comment lines means that source lines that are only related to the actual processing and parts that are not related are also included. At the same time,
When a record indicating the start of the data division 2 procedure division is found, the data division source line count and procedure division source line count are increased by 1, respectively. When a record indicating the end of the data division 2 procedure division is found, each count is ended. Since the end of the procedure division is also the end of the source program, the processing of the total source line count with blank lines and comment lines, and the total source line count without blank lines and comment lines is also completed. Next, the output means 1-8 edits and outputs each source line count obtained in a format that is easy for the user to view. Thereafter, if the source program to be searched is not detected, the edited output result obtained by the output means 1-8 is outputted to the output device 1-9.
以上説明したように、本発明はC0BOLプログラムの
ソース行数のカウントを行なう際、簡単な指定を行なう
だけで、短時間かつ正確に調査対象ソースプログラム行
数の編集結果を得られる効果がある。As described above, the present invention has the advantage that when counting the number of source lines of a COBOL program, it is possible to quickly and accurately obtain the editing result of the number of lines of the source program to be investigated by just making a simple specification.
第1図は本発明の一実施例であるCOBOLソースプロ
グラム行数カウント装置を示す構成図、第2図は本実施
例に用いてパラメータファイルを示すレコードレイアウ
ト図である。
1−1・・・・・・入力装置、1−2・・・・・・入力
手段、1−3・・・・・・解析手段、1−4・・・・・
・検索対象指示テーブル、1−5・・・・・・入力手段
、■−6・・・・・・記憶手段、1−7・・・・・・処
理手段、1−8・・・・・・出力手段、19・・・・・
・出力装置。FIG. 1 is a block diagram showing a COBOL source program line counting device according to an embodiment of the present invention, and FIG. 2 is a record layout diagram showing a parameter file used in this embodiment. 1-1... Input device, 1-2... Input means, 1-3... Analysis means, 1-4...
・Search target instruction table, 1-5... Input means, ■-6... Storage means, 1-7... Processing means, 1-8...・Output means, 19...
・Output device.
Claims (1)
となるソースプログラムを指示するパラメータ情報を入
力する第1の入力手段と、入力されたパラメータ情報を
解析する解析手段と、この解析手段により判定された検
索対象ソースプログラム情報を検索対象指示テーブルに
格納する手段と、検索対象指示テーブルの情報に従って
ソースライブラリより検索対象のソースプログラムを入
力する第2の入力手段と、検索対象のソースプログラム
を記憶する記憶手段と、検索対象のソースプログラムの
データ部、手続き部の範囲のチェック及びソースプログ
ラム中の空白行、注釈行のチェックを行ない、データ部
行数、手続き部行数、トータルソース行数のカウントを
行なう手段と、カウントされた上記データを出力装置へ
編集出力させる出力手段とを有することを特徴とするC
OBOLソースプログラム行数カウント装置。a first input means for inputting parameter information instructing a source program to be targeted for COBOL source program line count; an analysis means for analyzing the input parameter information; and a search target source determined by the analysis means. means for storing program information in a search target instruction table; second input means for inputting a search target source program from a source library according to information in the search target instruction table; storage means for storing a search target source program; means for checking the range of the data division and procedure division of the source program to be searched, checking for blank lines and comment lines in the source program, and counting the number of data division lines, procedure division lines, and total number of source lines; C, characterized in that it has an output means for editing and outputting the counted data to an output device.
OBOL source program line count device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1175231A JPH0338736A (en) | 1989-07-05 | 1989-07-05 | Counting device for number of lines of cobol source program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1175231A JPH0338736A (en) | 1989-07-05 | 1989-07-05 | Counting device for number of lines of cobol source program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0338736A true JPH0338736A (en) | 1991-02-19 |
Family
ID=15992562
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1175231A Pending JPH0338736A (en) | 1989-07-05 | 1989-07-05 | Counting device for number of lines of cobol source program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0338736A (en) |
-
1989
- 1989-07-05 JP JP1175231A patent/JPH0338736A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0338736A (en) | Counting device for number of lines of cobol source program | |
| JPH064344A (en) | Displaying the type of the referenced variable in the program | |
| JPH09101880A (en) | Program analyzer | |
| JPH06119032A (en) | Tool arrangement interference checking method for working graphic data | |
| CN110309499B (en) | Device for generating examination report and method for generating examination report online | |
| US4720788A (en) | Diagnostic densitometer | |
| JPH07129677A (en) | Production simulation device | |
| JP2000181700A (en) | Program analysis device and recording medium | |
| JP2004295425A (en) | Module structuring support device | |
| JPH04273330A (en) | Calculation processor for column position of layout item | |
| JP2759951B2 (en) | General-purpose multi-dimensional summary book creation system | |
| JPS62150251A (en) | Data base type photomask inspecting device | |
| JPS6254337A (en) | Specification displaying system for program hierarchy | |
| JPH03271949A (en) | Automatic generation system for test environment of program test | |
| JPH0635752A (en) | Analysis program generation system | |
| JP2785950B2 (en) | 2D graph drawing device | |
| JPH083789B2 (en) | Automatic program generation rate data automatic measurement method | |
| JPH05241799A (en) | Argument reference structure analysis device | |
| JP2990701B2 (en) | File editing method | |
| JP2820104B2 (en) | Input message amplifying apparatus and method | |
| JPH02230344A (en) | System for calculating capacity of data base file | |
| JPH04273328A (en) | Generation system for cross-reference list | |
| CN118916345A (en) | Efficient data quality detection method | |
| JPS638862A (en) | General-use sale statistical slip preparing system | |
| JPH03244050A (en) | Collection system for file information |