JPH04287120A - Time sequential era comparing system - Google Patents

Time sequential era comparing system

Info

Publication number
JPH04287120A
JPH04287120A JP3051894A JP5189491A JPH04287120A JP H04287120 A JPH04287120 A JP H04287120A JP 3051894 A JP3051894 A JP 3051894A JP 5189491 A JP5189491 A JP 5189491A JP H04287120 A JPH04287120 A JP H04287120A
Authority
JP
Japan
Prior art keywords
year
era
code
comparison
digits
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.)
Granted
Application number
JP3051894A
Other languages
Japanese (ja)
Other versions
JP2589000B2 (en
Inventor
Masafumi Shinohara
雅史 篠原
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3051894A priority Critical patent/JP2589000B2/en
Publication of JPH04287120A publication Critical patent/JPH04287120A/en
Application granted granted Critical
Publication of JP2589000B2 publication Critical patent/JP2589000B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To executes time sequential comparison without any conflict after a year (the year 2000, for example) carrying a prescribed lower digit only by preparing an era correcting program concerning the time sequential era comparing system to execute time sequential comparison using the prescribed lower digit of the era. CONSTITUTION:An era data correction part 3 is to reload a code (such as F0-F9, for example) for the prescribed lower digit of the era in a former date data part to a code smaller than this, and an era comparison part 4 provided to compare the era. With the year carrying the prescribed digit of the era as a chance, the era data correction part 3 reloads the code (F0-F9, for example) for the prescribed lower digit of the era only in the former date data part to the code smaller than it, and the era comparison part 4 takes out the code for the prescribed lower digit of the era as the object of comparison and executes the time sequential comparison in the relation of the size.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、年号の下所定桁を用い
て時系列比較を行う時系列年号比較方式に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a time-series year comparison method that performs time-series comparison using a predetermined last digit of the year name.

【0002】0002

【従来の技術】プログラムによっては、年月日の比較を
行い、その比較結果が重要なプログラムの動作決定につ
ながるものがある。現在、そのようなプログラムは、西
暦の下2桁を使用することにより時系列処理を行ってい
る。
2. Description of the Related Art Some programs compare years, months, and dates, and the results of the comparison determine important program operations. Currently, such programs perform time series processing by using the last two digits of the Western calendar.

【0003】0003

【発明が解決しようとする課題】しかし、10年後に西
暦2000年を迎えると、旧データ(19××年)に作
成されたものと、新たに2000年以降に作成したもの
との時系列比較を行ったとき、プログラムの動作が保障
されなく、旧データの書き換え、プログラムの修正など
の対処を余儀なくされてしまうという問題がある。具体
的に説明すると、現在、EBCDICコード表によると
、年号の数字の0ないし9は、EBCDICコードでF
0ないしF9である。従って、1995年3月26日の
年号の下2桁“95”は、“F9F5”となり、200
0年3月26日の年号の下2桁“00”は、“F0F0
”となり、両者を比較すると、F9F5>F0F0とな
り、時系列の比較を正しく行えなくなる。
[Problem to be solved by the invention] However, when the year 2000 arrives 10 years later, a time-series comparison is made between the old data (19XX year) and the new data created after 2000. When doing so, there is a problem in that the operation of the program is not guaranteed and the user is forced to take measures such as rewriting old data and modifying the program. To explain specifically, currently, according to the EBCDIC code table, the numbers 0 to 9 in the year number are F in the EBCDIC code.
0 to F9. Therefore, the last two digits of the year number "95" on March 26, 1995 become "F9F5", which means 200
The last two digits of the year number “00” on March 26, 2000 are “F0F0”.
”, and when the two are compared, F9F5>F0F0, and the time series comparison cannot be performed correctly.

【0004】本発明は、下所定桁が繰り上がった年を契
機に年号の下所定桁の旧日付データ部の年号のコード(
例えばF0ないしF9)をこれよりも小さいコード(例
えばB0ないしB9)に書き換え、年号修正プログラム
の作成のみで下所定桁が繰り上がった年(例えば200
0年)以降の時系列比較を矛盾なく行えるようにするこ
とを目的としている。
[0004] The present invention uses the year code (
For example, by rewriting the code (for example, F0 to F9) to a smaller code (for example, B0 to B9) and creating a year correction program, the year in which the lower predetermined digit is carried forward (for example, 200
The purpose is to enable time-series comparisons after year 0) without contradiction.

【0005】[0005]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、年号デー
タ修正部3は、日付データ部7の年号の下所定桁のコー
ド(例えばF0ないしF9)をこれよりも小さいコード
に書き換えるものである。
[Means for Solving the Problems] Means for solving the problems will be explained with reference to FIG. In FIG. 1, the year data correction section 3 rewrites the code of the lower predetermined digit of the year (for example, F0 to F9) in the date data section 7 to a smaller code.

【0006】年号比較部4は、年号を比較するものであ
る。
[0006] The year comparison section 4 compares year names.

【0007】[0007]

【作用】本発明は、図1に示すように、年号の下所定桁
が繰り上がった年を契機に年号データ修正部3が旧日付
データ部のみの年号の下所定桁のコード(例えばF0な
いしF9)をこれより小さいコードに書き換え、年号比
較部4が比較対象の年号の下所定桁のコードを取り出し
てその大小関係で時系列比較を行うようにしている。
[Operation] As shown in FIG. 1, in the present invention, when the year in which the last predetermined digit of the year is moved forward, the year data correction unit 3 changes the code ( For example, F0 to F9) is rewritten to a smaller code, and the year comparison unit 4 extracts the code of the last predetermined digit of the year to be compared and performs a time series comparison based on the magnitude relationship.

【0008】従って、年号の下所定桁の繰り上がった年
(例えば2000年)以降も旧年号の下所定桁(例えば
19××年の下2桁)の時系列比較を正しく行うことが
可能となる。これにより、年号修正プログラムの作成の
みで例えば2000年以降の時系列比較を矛盾なく行え
る。
[0008] Therefore, even after the year in which the last predetermined digit of the year number has been moved forward (for example, 2000), it is not possible to correctly perform time-series comparisons of the last predetermined digits of the old year name (for example, the last two digits of the year 19XX). It becomes possible. As a result, time-series comparisons starting from 2000, for example, can be performed without contradiction by simply creating a year correction program.

【0009】[0009]

【実施例】次に、図1ないし図3を用いて本発明の実施
例の構成および動作を順次詳細に説明する。ここで、下
所定桁として2桁、下所定桁が繰り上がった年として2
000年を例に以下説明する。図1において、計算機シ
ステム1は、各種業務処理を行うものであって、ここで
は日付管理を行う該当プログラム2である年号データ修
正部3および年号比較部4などから構成されるものであ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the structure and operation of an embodiment of the present invention will be explained in detail with reference to FIGS. 1 to 3. Here, 2 digits are the lower predetermined digits, and 2 digits are the year in which the lower predetermined digits are carried forward.
This will be explained below using the year 000 as an example. In FIG. 1, a computer system 1 performs various business processes, and is comprised of an era data correction unit 3, an era data comparison unit 4, which is a corresponding program 2 that performs date management, and the like. .

【0010】年号データ修正部3は、旧日付データ部の
年号の下所定桁のコードF0ないしF9(EBCDIC
コード)をこれよりも小さいコード(例えばB0ないし
B9)に修正するものである。例えば年号の下2桁の数
字0ないし9を表わすEBCDICコードのF0ないし
F9を、これによりも小さい例えばB0ないしB9に、
2000年を契機に修正するものである。これにより、
2000年以前の日付データの年号の下2桁の数字0な
いし9は、EBCDICコードでB0ないしB9で表記
するように変更し、2000年以降の日付データの年号
の下2桁の数字0ないし9は、EBCDICコードでF
0ないしF9で表記する。
[0010] The year data correction unit 3 uses codes F0 to F9 (EBCDIC
code) to a smaller code (for example, B0 to B9). For example, change the EBCDIC code F0 to F9, which represents the last two digits of the year from 0 to 9, to a smaller number, for example, B0 to B9.
This will be revised in 2000. This results in
The last two digits 0 to 9 of the year in date data before 2000 will be changed to B0 to B9 in the EBCDIC code, and the last two digits 0 of the year in date data after 2000 will be changed to 0 to 9. -9 is F in EBCDIC code
It is expressed as 0 to F9.

【0011】従って、2000年以降はこれら2つの表
記を用いることにより、年号の下2桁を用いた時系列比
較を2000以前のプログラムに修正を加えることなく
そのまま使用できる。年号比較部4は、年号の下2桁を
比較するものである。データベース5は、日付データ部
7を持つ各種データを格納したものである。
[0011] Therefore, by using these two notations after 2000, time series comparison using the last two digits of the year name can be used as is without making any modifications to programs before 2000. The year comparison section 4 compares the last two digits of the year numbers. The database 5 stores various data including a date data section 7.

【0012】修正対象データ6は、西暦の下2桁を用い
て年号を管理するデータであって、2000年を越えた
ときに当該年号に修正(年号の下2桁のEBCDICコ
ードのF0ないしF9をこれにより小さい例えばB0な
いしB9に修正)を行う対象のデータである。日付デー
タ部7は、修正対象データ5のうちの日付を記載した部
分である。
Correction target data 6 is data that manages the year using the last two digits of the Western calendar, and is corrected to the year when the year exceeds 2000 (by changing the EBCDIC code of the last two digits of the year). This is the data to which F0 to F9 are modified (to smaller values, for example, B0 to B9). The date data portion 7 is a portion of the correction target data 5 in which a date is written.

【0013】次に、図2および図3を用いて図1の構成
の動作を詳細に説明する。図2の(イ)は、年号修正フ
ローチャートを示す。図2の(イ)において、S1は、
2000年になったか否かを判別する。これは、年号の
下2桁が繰り上がって2000年になり、下2桁の修正
を施す必要が発生したか否かを判別する。YESの場合
には、S2に進む。NOの場合には、S1を繰り返し行
う。
Next, the operation of the configuration shown in FIG. 1 will be explained in detail using FIGS. 2 and 3. (A) in FIG. 2 shows a flowchart for correcting the year name. In (a) of FIG. 2, S1 is
Determine whether the year 2000 has arrived. This determines whether or not the last two digits of the year number have been moved up to 2000, making it necessary to correct the last two digits. If YES, proceed to S2. If NO, S1 is repeated.

【0014】S2は、旧データベース上の年号のフィー
ルドをF0ないしF9からB0ないしB9に変更する。 これは、図1の旧のデータベース5中の日付データ部7
の下2桁の年号の数字0ないし9に対応するEBCDI
CコードのF0ないしF9を、これによりも小さい例え
ばB0ないしB9に変更する。以上のように、2000
年となったことを契機に、旧データベース5の日付デー
タ部7の年号の下2桁のEBCDICコードの表記F0
ないしF9をB0ないしB9に変更し、このEBCDI
Cコードをそのまま用いて時系列比較を行う準備ができ
たこととなる。
[0014] S2 changes the year field on the old database from F0 to F9 to B0 to B9. This is the date data section 7 in the old database 5 in Figure 1.
EBCDI corresponding to the last two digits of the year number 0 to 9
Change F0 to F9 of the C code to smaller values such as B0 to B9. As mentioned above, 2000
Taking advantage of the new year, the last two digits of the year in the date data section 7 of the old database 5 will be written in the EBCDIC code F0.
or F9 to B0 or B9, and this EBCDI
Now we are ready to perform time series comparison using the C code as is.

【0015】次に、図2の(ロ)を用いて2000年以
前の旧年号と、2000年以降の新年号との時系列比較
について具体例を用いて説明する。 旧年号の日付を1995.3.26 新年号の日付を2001.3.26 とする。これら両者の図1のデータベース5上の日付デ
ータ部7は、 旧日付データ部は950326 新日付データ部は010326 となり(S11、S13)、このときの年号の下2桁の
EBCDICコードの 旧表記はB9B5 新表記はF0F1 となる(S12、S14)。従って、両者の大小を比較
すると、旧表記のB9B5<新表記のF0F1となり(
S15)、正しい時系列比較を行うことができた。
Next, using (b) of FIG. 2, a chronological comparison between old era names before 2000 and new era names after 2000 will be explained using a specific example. The date of the old year is March 26, 1995, and the date of the new year is March 26, 2001. The date data part 7 on the database 5 in both of these figures is 950326 for the old date data part and 010326 for the new date data part (S11, S13), and the old notation of the EBCDIC code of the last two digits of the year name at this time. is B9B5, and the new notation is F0F1 (S12, S14). Therefore, when comparing the sizes of the two, B9B5 in the old notation < F0F1 in the new notation (
S15), it was possible to perform a correct time series comparison.

【0016】図3は、本発明のEBCDICコード表例
を示す。これは、既述したように、数字0ないし9に割
り当てた従来のコードF0ないしF9の他に、これより
も小さいB0ないしB9を旧の年号の下2桁に新たに割
り当てた様子を示す。ここで、図中に記載したように、
20××年の下2桁の××の年号の数字0ないし9には
、EBCDICコードのF0ないしF9を割り当てる。 一方、19××年の下2桁の××の旧年号の数字0ない
し9には、EBCDICコードのB0ないしB9を割り
当てたものである。このB0ないしB9は、2000年
になったことを契機に、既述した図2の(イ)のフロー
チャートに従って旧データベース5の日付データ部7の
年号の数字0ないし9のF0ないしF9を変更するとき
に使用する。尚、B0ないしB9は、F0ないしF9よ
りも小さければよく、一例であって、EBCDICコー
ドのうちの使用されていないコードであれば他のもので
もよい。
FIG. 3 shows an example of an EBCDIC code table of the present invention. As mentioned above, this shows that in addition to the conventional codes F0 to F9, which were assigned to numbers 0 to 9, smaller codes B0 to B9 were newly assigned to the last two digits of the old year name. . Here, as stated in the figure,
The last two digits of the year 20XX, numbers 0 to 9 of the year number, are assigned EBCDIC codes F0 to F9. On the other hand, the last two digits of the year 19XX, numbers 0 to 9 of the old year name of XX, are assigned EBCDIC codes B0 to B9. With the arrival of the year 2000, these B0 to B9 changed F0 to F9 of the year numbers 0 to 9 in the date data section 7 of the old database 5 according to the flowchart in (a) of Figure 2 described above. Use when Note that B0 to B9 only need to be smaller than F0 to F9, and are just one example, and may be other codes as long as they are unused codes among the EBCDIC codes.

【0017】[0017]

【発明の効果】以上説明したように、本発明によれば、
年号の下所定桁の繰り上がった年を契機に旧日付データ
部のみの年号の下所定桁のコード(例えばF0ないしF
9)をこれよりも小さいコード(例えばB0ないしB9
)に書き換える構成を採用しているため、年号の下所定
桁の繰り上がった年(例えば2000年)以降も旧年号
の下所定桁(例えば19××年の下2桁)の時系列比較
を正しく行うことができる。これにより、年号修正プロ
グラムの作成のみで例えば2000年以降の時系列比較
を矛盾なく行え、対象モジュール修正時間、コンパイル
時間、LKED時間を無くしたり最小にすることができ
る。
[Effects of the Invention] As explained above, according to the present invention,
The code of the last specified digit of the year only in the old date data section (for example, F0 to F
9) to a smaller code (e.g. B0 to B9)
), the time series of the last specified digits of the old year (for example, the last two digits of the year 19XX) will be used even after the year in which the last specified digit of the year is moved forward (for example, 2000). Be able to make correct comparisons. As a result, it is possible to perform a time-series comparison from 2000 onwards without any inconsistency simply by creating a year correction program, and it is possible to eliminate or minimize the target module correction time, compile time, and LKED time.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の原理ブロック図である。FIG. 1 is a block diagram of the principle of the present invention.

【図2】本発明の動作説明図である。FIG. 2 is an explanatory diagram of the operation of the present invention.

【図3】本発明のEBCDICコード表例である。FIG. 3 is an example of an EBCDIC code table of the present invention.

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

1:計算機システム 2:該当プログラム 3:年号データ修正部 4:年号比較部 5:データベース 6:修正対象データ 7:日付データ部 1: Computer system 2: Applicable program 3: Year data correction section 4: Year comparison section 5: Database 6: Data to be corrected 7: Date data section

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  年号の下所定桁を用いて時系列比較を
行う時系列年号比較方式において、旧日付データ部の年
号の下所定桁のコード(例えばF0ないしF9)をこれ
よりも小さいコードに書き換える年号データ修正部(3
)と、年号を比較する年号比較部(4)とを備え、年号
の所定桁が繰り上がった年を契機に上記年号データ修正
部(3)が旧日付データ部のみの年号の下所定桁のコー
ド(例えばF0ないしF9)をこれより小さいコードに
書き換え、上記年号比較部(4)が比較対象の年号の下
所定桁のコードを取り出してその大小関係で時系列比較
を行うように構成したことを特徴とする時系列年号比較
方式。
Claim 1: In a time-series year comparison method that performs time-series comparison using the last predetermined digit of the year, the code (for example, F0 to F9) of the last predetermined digit of the year in the old date data section is Year data correction part that rewrites to a smaller code (3
) and an era name comparison section (4) that compares the era numbers, and when a predetermined digit of the era name moves forward, the above era data correction section (3) converts the era name of only the old date data section. The code in the lower predetermined digits (for example, F0 to F9) is rewritten to a smaller code, and the year comparison section (4) extracts the code in the lower predetermined digits of the year to be compared and compares them in chronological order based on their magnitude. A time-series year comparison method characterized by being configured to perform.
【請求項2】  上記下所定桁として2桁、上記年号の
所定桁が繰り上がった年として2000年としたことを
特徴とする請求項第1項記載の時系列年号比較方式。
2. The time-series year comparison method according to claim 1, wherein two digits are used as the lower predetermined digits, and 2000 is set as the year in which the predetermined digit of the year number is carried forward.
JP3051894A 1991-03-18 1991-03-18 Information processing system Expired - Fee Related JP2589000B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3051894A JP2589000B2 (en) 1991-03-18 1991-03-18 Information processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3051894A JP2589000B2 (en) 1991-03-18 1991-03-18 Information processing system

Publications (2)

Publication Number Publication Date
JPH04287120A true JPH04287120A (en) 1992-10-12
JP2589000B2 JP2589000B2 (en) 1997-03-12

Family

ID=12899588

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3051894A Expired - Fee Related JP2589000B2 (en) 1991-03-18 1991-03-18 Information processing system

Country Status (1)

Country Link
JP (1) JP2589000B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02183820A (en) * 1989-01-11 1990-07-18 Tokyo Electric Co Ltd Communication terminal equipment
JPH02294714A (en) * 1989-05-09 1990-12-05 Fujitsu Ltd Dominical year identifying and processing method
JPH03233714A (en) * 1990-02-09 1991-10-17 Nec Corp Date conversion processing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02183820A (en) * 1989-01-11 1990-07-18 Tokyo Electric Co Ltd Communication terminal equipment
JPH02294714A (en) * 1989-05-09 1990-12-05 Fujitsu Ltd Dominical year identifying and processing method
JPH03233714A (en) * 1990-02-09 1991-10-17 Nec Corp Date conversion processing system

Also Published As

Publication number Publication date
JP2589000B2 (en) 1997-03-12

Similar Documents

Publication Publication Date Title
US20090024997A1 (en) Batch processing apparatus
JPH04287120A (en) Time sequential era comparing system
JPH064166A (en) Expiration date setting device for job
JPS6342293B2 (en)
JPH0546378A (en) Correction processing method for program
JPH03123946A (en) Exclusive control method for data base
JPH0581287A (en) Date management system
CN113391829A (en) Debugging method for coping with high-frequency iteration data
JPH1040089A (en) Method for generating data transfer program
JPH11272524A (en) Data converter and storage medium
JPH04253232A (en) Data base operating system
JP2003150423A (en) Document management method, document management device, and program
JPH01120621A (en) Retrieving/updating system for data base
JP3531527B2 (en) System SG parameter management method and system SG parameter management method
JPH05257656A (en) Software information managing system
JPH04138536A (en) Specification system for file
JPH04205361A (en) File access controller
JPH0229867A (en) Design execution control system
JPH04156625A (en) Accessing system for kodasyl type network data base
JPH0675984A (en) Input system in accumulated total calculation
JPS6375945A (en) Transaction synchronization processing system
JPH04290138A (en) Software maintenance system for decentralized information communication system
JPH04260127A (en) Program source managing system
JPH02310743A (en) File generation managing system
JPH0268622A (en) Program specializing system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19961008

LAPS Cancellation because of no payment of annual fees