JPH05242268A - Automatic tabulating system for time-point data - Google Patents

Automatic tabulating system for time-point data

Info

Publication number
JPH05242268A
JPH05242268A JP4137792A JP4137792A JPH05242268A JP H05242268 A JPH05242268 A JP H05242268A JP 4137792 A JP4137792 A JP 4137792A JP 4137792 A JP4137792 A JP 4137792A JP H05242268 A JPH05242268 A JP H05242268A
Authority
JP
Japan
Prior art keywords
time
data
value
point
table data
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.)
Withdrawn
Application number
JP4137792A
Other languages
Japanese (ja)
Inventor
Tomotaka Inoue
智香 井上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by KOBE NIPPON DENKI SOFTWARE KK, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP4137792A priority Critical patent/JPH05242268A/en
Publication of JPH05242268A publication Critical patent/JPH05242268A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To tabulate data expressed with time-point at every period. CONSTITUTION:When sales data 11a, 11b are written on a table data storing file 13, the data representing the time is converted to format according to a constant rule, that is, a time value by a time-point data conversion processing part 12. A tabulation processing part 16 receives table data line by line from a table data input part 14, and performs an arithmetic operation according to a method and the period designated by a tabulating method decision part 15. A tabulation result is written on the table data storing table 13, line by line, at a table data output part 17. When the sales data 11a, 11b are generated, the time-point value can be changed to arbitrary description by the time-point data conversion processing part 12.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、時点データの自動集計
システムに関し、特にマトリックス表示された時を表わ
すデータをキーとして表データの周期毎の計算処理を行
う自動集計システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic totaling system for time data, and more particularly to an automatic totaling system for performing a calculation process for each cycle of tabular data by using data representing time displayed in a matrix as a key.

【0002】[0002]

【従来の技術】従来、周期毎の集計を行う場合、時を表
すデータの表現形式及び単位(年、月、日等)と、まと
めようとする周期との組み合わせによって、それぞれ別
々のプログラムを作成していた。
2. Description of the Related Art Conventionally, in the case of totaling for each cycle, a separate program is created depending on the combination of the expression format and unit (year, month, day, etc.) of data representing time and the cycle to be summarized. Was.

【0003】[0003]

【発明が解決しようとする課題】従来の時点データの自
動集計システムでは表データ中の時を表すデータの種類
の数とまとめようとする周期の組み合わせの数だけ処理
プログラムが必要であり、例えば日毎の売上データを持
つ表データの場合、一月分・四半期分・半年分・一年分
といったような周期が存在し、それぞれに対応するプロ
グラムを作成していた。
In the conventional point-in-time data automatic totaling system, processing programs are required for the number of combinations of the types of data representing the time in the table data and the cycle to be summarized. In the case of table data having sales data of, there are cycles such as January, quarter, half year, and year, and programs were created for each.

【0004】さらに表データ中の時を表すデータには、
旬毎・月毎・四半期毎・半年毎といった種類が存在する
ので、プログラムの数は極端に多くなる。
Further, the data representing time in the table data includes
Since there are types such as seasonal, monthly, quarterly, and semi-annual, the number of programs will be extremely large.

【0005】[0005]

【課題を解決するための手段】本発明の時点データ自動
集計システムは、時を表す任意の表現形式を、時の単位
を表示する期型識別符号と数字列から成る統一された形
式の時点値に変換する第1の変換手段と、前記時点値を
キーとしてデータを登録するデータ格納手段と、前記期
型識別符号と前記数字列の上限値および下限値を指定し
て前記データ格納手段を検索し集計する集計手段と、前
記時点値を前記時を表す任意の表現形式に変換する第2
の変換手段とを備えている。
According to the automatic time point data totalizing system of the present invention, an arbitrary expression format representing time is represented by a unified format time point value consisting of a period type identification code indicating a unit of time and a numerical sequence. A first converting means for converting to, a data storing means for registering data using the time point value as a key, an upper limit value and a lower limit value of the period type identification code and the numeral string, and searching the data storing means. And a totalizing means for totaling and secondly converting the point-in-time value into an arbitrary expression format representing the time
And the conversion means of.

【0006】[0006]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0007】図1を参照すると、本発明の一実施例は、
和暦形式の月別売上データ11aと、西暦形式の月別売
上データ11bと、時点データ変換処理部12aと12
bと、表データ格納ファイル13と、表データ入力部1
4と、集計方法決定部15と、集計処理部16と、表デ
ータ出力部17とから構成される。
Referring to FIG. 1, one embodiment of the present invention is
Monthly sales data 11a in the Japanese calendar format, monthly sales data 11b in the Western calendar format, and time point data conversion processing units 12a and 12
b, the table data storage file 13, and the table data input unit 1
4, a tabulation method determination unit 15, a tabulation processing unit 16, and a table data output unit 17.

【0008】時点データ変換処理部12aは、和暦,西
暦,「年」および「月」などの時を表す表示形式を予め
定めた1つの表現形式に変換するもので、例えば、「平
成2年1月」という表現形式を「M199001」とい
う表現形式に変換する。この場合「M」という表現は月
を表すものとする。
The point-in-time data conversion processing unit 12a converts the display format representing time such as the Japanese calendar, the Western calendar, "year" and "month" into one predetermined expression format. The expression format "January" is converted to the expression format "M199001". In this case, the expression "M" represents the month.

【0009】同様にして、「日」を「Dyyyymmd
d」(yyyy:西暦,01≦mm≦12,01≦dd
≦31), (注)大の月,小の月,うるう年を考慮する。
Similarly, "day" is replaced by "Dyyyymmd"
d ”(yyyy: AD, 01 ≦ mm ≦ 12, 01 ≦ dd
≤31), (Note) Consider big month, small month, and leap year.

【0010】「旬」を「Jyyyymmj」(上旬(j
=1),中旬(j=2),下旬(j=3)),「四半
期」を「Qyyyyq」(第1四半期(q=1),第2
四半期(q=2),第3四半期(q=3),第4四半期
(q=4)),「半期」を「Hyyyyh」(上期(h
=1),下期(h=2)),「年」を「Yyyyy」と
表す。
"Season" is changed to "Jyyyymmj" (early (j
= 1), middle (j = 2), late (j = 3)), "quarter" to "Qyyyyq" (first quarter (q = 1), second
Quarter (q = 2), third quarter (q = 3), fourth quarter (q = 4)), "half year" to "Hyyyyh" (first half (h
= 1), second half (h = 2)), and "year" are represented as "Yyyyy".

【0011】ここで、「Y」,「H」,「Q」,
「M」,「J」,「D」は時の単位を表す識別符号で
「期型」と呼び、この期型と数字列とからなる表現形式
を「時点値」と呼ぶ。
Here, "Y", "H", "Q",
“M”, “J”, and “D” are identification codes that represent the unit of time and are called “period type”, and the expression form consisting of this period type and a number string is called “time point value”.

【0012】表データ入力部14は、表データ格納ファ
イル13から1行分のデータ、すなわち、1つの時点値
に対応する売上データを読込む。
The table data input unit 14 reads data for one line from the table data storage file 13, that is, sales data corresponding to one time point value.

【0013】集計方法決定部15は、どの期型のデータ
をどのような周期にまとめて集計を行うか、あるいは、
合計値,平均値,最大値および最小値等のどのような演
算を行うかの決定を行う。
The tally method determining unit 15 decides which period type data is to be collected in what period, or
Decide what kind of calculation such as total value, average value, maximum value and minimum value.

【0014】集計処理部16は、表データ入力部14で
読込んだデータに後述する処理を行い、その結果作成さ
れた1行分のデータを表データ出力部17に出力する。
The tabulation processing unit 16 performs the processing described below on the data read by the table data input unit 14, and outputs the data for one line created as a result to the table data output unit 17.

【0015】時点データ変換処理部12bは、上述の時
点データ変換処理部12aと逆の変換、すなわち、時点
値を任意の表現形式に変換して帳票等を作成する。
The point-in-time data conversion processing unit 12b performs the reverse conversion of the above-mentioned point-in-time data conversion processing unit 12a, that is, the point-in-time value is converted into an arbitrary expression format to create a form or the like.

【0016】さらに時点データ変換処理部12bにて、
時点値を任意の表示形式に変換して帳票等を作成するこ
とも可能である。
Further, in the time point data conversion processing unit 12b,
It is also possible to convert the time value into an arbitrary display format and create a form or the like.

【0017】次に本実施例の集計処理部16の動作を図
2を参照して説明する。
Next, the operation of the totalization processing unit 16 of this embodiment will be described with reference to FIG.

【0018】時点値の妥当性チェック部21では表デー
タ入力部14によって読み込んだデータ中の時点値が集
計方法決定部15で指定された期型と一致するかどうか
のチェックを行い、一致した場合には時点値の期間チェ
ック部22において時点値の期間チェックを行う。例え
ば集計方法決定部15にて「平成2年から1年周期の合
計値を求める」を指定された場合、下限値を「平成2年
1月」・上月値を「平成2年12月」とし、「平成2年
1月」から「平成2年12月」までを集計の対象とする
ものである。
The time value validity checking unit 21 checks whether or not the time value in the data read by the table data input unit 14 matches the period type specified by the counting method determination unit 15, and if they match. For this purpose, the time value period check unit 22 checks the time value period. For example, when "Calculate the total value of one year cycle from 1990" is specified in the aggregation method determination unit 15, the lower limit value is "January 1990" and the upper month value is "December 1990". In addition, "January 1990" to "December 1990" are the targets of aggregation.

【0019】上記集計対象に当てはまった場合、演算部
23にてそれまでのデータに対する加算処理(合計値・
平均値)、入れ替え処理(最大値・最小値)を行う。
When the above-mentioned summation target is applied, the arithmetic unit 23 performs addition processing (total value
Perform the average value) and the replacement process (maximum value / minimum value).

【0020】上限値を越えた場合は演算結果編集部24
にて、演算部23で蓄えておいたデータを取り出し、ま
た対応する周期の時点値を編集して一行分の集計結果デ
ータを作成し、表データ出力部17にて表データ格納フ
ァイル11aおよび11bへ書き出す。
When the upper limit is exceeded, the calculation result editing unit 24
At, the data stored in the arithmetic unit 23 is taken out, and the time value of the corresponding cycle is edited to create one row of total result data, and the tabular data output unit 17 directs the tabular data storage files 11a and 11b. Write to.

【0021】そして、演算部23の内容を現在読み込ん
でいるデータで全て置き換え、期間チェック部22の内
容に周期分を加え、下限値を「平成3年1月」)・上限
値を「平成3年12月」とする。
Then, the contents of the arithmetic unit 23 are all replaced with the data currently read, the contents of the period check unit 22 are added with a period, and the lower limit value is "January 1991" and the upper limit value is "Heisei 3 December of the year ".

【0022】以上の流れをデータが無くなるまで繰り返
し、データが無くなったら演算部23に残っているデー
タを最終結果編集部25にて編集し、表データ出力部1
7にて書き出し、処理を終了する。
The above flow is repeated until the data disappears, and when the data disappears, the data remaining in the arithmetic unit 23 is edited by the final result editing unit 25, and the table data output unit 1
The data is written in 7, and the process is completed.

【0023】[0023]

【発明の効果】以上説明したように、本発明によれば利
用者がどのような時を表すデータを使用していても、ど
のような周期で集計を行うかにおいても、ひとつの方法
で処理を行うことができるので非常に効率良く集計する
ことが可能である。
As described above, according to the present invention, no matter what kind of time the user uses the data, and in what cycle the data is collected, the processing is performed by one method. Therefore, it is possible to perform the aggregation very efficiently.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例のブロック図FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】図1の集計処理部16の動作図FIG. 2 is an operation diagram of a totalization processing unit 16 in FIG.

【符号の説明】[Explanation of symbols]

11a 和暦形式の月別売上データ 11b 西暦形式の月別売上データ 12a,12b 時点データ変換処理部 13 表データ格納ファイル 14 表データ入力部 15 集計方法決定部 16 集計処理部 17 表データ出力部 21 時点値の妥当性チェック部 22 時点値の期間チェック部 23 演算部 24 演算結果編集部 25 最終結果編集部 11a Monthly sales data in Japanese calendar format 11b Monthly sales data in Western calendar format 12a, 12b Time data conversion processing unit 13 Table data storage file 14 Table data input unit 15 Aggregation method determination unit 16 Aggregation processing unit 17 Table data output unit 21 Time value Validity check section 22 Time value period check section 23 Calculation section 24 Calculation result editing section 25 Final result editing section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 時を表す任意の表現形式を、時の単位を
表示する期型識別符号と数字列から成る統一された形式
の時点値に変換する第1の変換手段と、 前記時点値をキーとしてデータを登録するデータ格納手
段と、 前記期型識別符号と前記数字列の上限値および下限値を
指定して前記データ格納手段を検索し集計する集計手段
と、 前記時点値を前記時を表す任意の表現形式に変換する第
2の変換手段とを備えたことを特徴とする時点データ自
動集計システム。
1. A first conversion means for converting an arbitrary expression format representing time into a time value in a unified format consisting of a period type identification code indicating a unit of time and a numerical sequence, and the time value. Data storage means for registering data as a key, totalizing means for searching and totalizing the data storage means by designating the period type identification code and the upper limit value and the lower limit value of the numeric string, and the time point value for the time An automatic time point data totaling system, comprising: a second conversion means for converting to an arbitrary expression format.
JP4137792A 1992-02-27 1992-02-27 Automatic tabulating system for time-point data Withdrawn JPH05242268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4137792A JPH05242268A (en) 1992-02-27 1992-02-27 Automatic tabulating system for time-point data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4137792A JPH05242268A (en) 1992-02-27 1992-02-27 Automatic tabulating system for time-point data

Publications (1)

Publication Number Publication Date
JPH05242268A true JPH05242268A (en) 1993-09-21

Family

ID=12606720

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4137792A Withdrawn JPH05242268A (en) 1992-02-27 1992-02-27 Automatic tabulating system for time-point data

Country Status (1)

Country Link
JP (1) JPH05242268A (en)

Similar Documents

Publication Publication Date Title
US7165214B2 (en) Data management system, method, and recording medium
US20010044762A1 (en) Financial statement module
GB2079016A (en) Apparatus for printing designated data
JPH05242268A (en) Automatic tabulating system for time-point data
JP3337469B2 (en) Information processing device
JPS642970B2 (en)
JPH04181372A (en) Table sheet totalization system for data
JP5682354B2 (en) Data compression apparatus, data compression method, and data compression program
JP2506881B2 (en) Electronic register display device
JP3044718B2 (en) Information processing device
Fry Data processing
JPS602714B2 (en) Printed character recognition device
JPS5838822B2 (en) electronic cash register
JP2024068999A (en) Program for creating cash flow statements
JP3109330B2 (en) Form output device
JPS5824960A (en) Logger
JPH04273368A (en) Summary sheet preparing device
JPH047758A (en) File processor
JP3047401B2 (en) Data processing device
JP2755175B2 (en) Data statistical information time series management system and data statistical information totaling calculation method
JPH11143857A (en) Year data management system and storage medium
JPH0258672B2 (en)
JP3736053B2 (en) Data item approximation analysis apparatus and method
JP2566587B2 (en) Database search method
JPH0683850A (en) Anno domini processing system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990518