JPH11143857A - Year data management system and storage medium - Google Patents

Year data management system and storage medium

Info

Publication number
JPH11143857A
JPH11143857A JP9309067A JP30906797A JPH11143857A JP H11143857 A JPH11143857 A JP H11143857A JP 9309067 A JP9309067 A JP 9309067A JP 30906797 A JP30906797 A JP 30906797A JP H11143857 A JPH11143857 A JP H11143857A
Authority
JP
Japan
Prior art keywords
year
month
digit
data
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.)
Withdrawn
Application number
JP9309067A
Other languages
Japanese (ja)
Inventor
Yuko Yanagida
雄幸 柳田
Tadashi Saito
正 斉藤
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.)
DOT KENKYUSHO KK
Fujitsu Ltd
Original Assignee
DOT KENKYUSHO KK
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 DOT KENKYUSHO KK, Fujitsu Ltd filed Critical DOT KENKYUSHO KK
Priority to JP9309067A priority Critical patent/JPH11143857A/en
Publication of JPH11143857A publication Critical patent/JPH11143857A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Complex Calculations (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a year data management system and a recording medium capable of simply dealing with the problem of A.D. 2000 by leaving an application which deals with a year by two digits as it is, providing a filter processing means between files and the like to which the application accesses, using up to the maximum numbers of month two digits without changing an attribute (or a format) and performing a conversion/inverse conversion in write and read. SOLUTION: This system is composed of a means 1 for inputting and outputting year two digits and month two digits and a filter processing means 8 that, with regard to the inputted year two digits and month two digits, converts year 99 and the year two columns into the month two digits when the year two digits are below a year 07 and writes it in a file 10 and, on the other hand, reverse-converts the month two digits below month 12 by the year two digits and the month two digits and outputs it.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、2桁の年でデータ
を管理する年データ管理装置および記録媒体に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a year data management device and a recording medium for managing data with a two-digit year.

【0002】[0002]

【従来の技術】従来、COBOL言語等で作成したデー
タベースなどのファイル資産内の西暦デタは、西暦年号
中の下2桁のみを使用しているため、1900年代と2
000年代が混在した場合、大小比較判定等が正しく処
理されなかった。正しく処理するための2000年対応
は、対応するアプリケーションとファイルなどの西暦2
桁表現を西暦4桁表現に修正し、大小判定、並べ替え処
理で、年度の順序が正しく処理されるように変更してい
た。変更には、エキスパートが必要となり、移行費用お
よびそのための準備期間が多く必要であった。
2. Description of the Related Art Conventionally, year data in a file asset such as a database created in the COBOL language or the like uses only the last two digits of the year of the Christian era.
When the 000's were mixed, the comparison of magnitude was not correctly processed. For the year 2000 to process correctly, the corresponding application and files, such as the year 2
The digit representation was corrected to the four-digit representation of the Christian era, and the year order was correctly processed in the magnitude judgment and rearrangement processing. The change required an expert and required a lot of migration costs and preparation time.

【0003】また、ファイル資産は、従来は西暦を2桁
で扱っていたので、これを4桁に変更するには、資源の
拡張が必要となるために充分な資源を用意していた。
[0003] In addition, since the file asset conventionally handles the year using two digits, changing the number to four digits requires a sufficient amount of resources since resource expansion is required.

【0004】[0004]

【発明が解決しようとする課題】上述したように、西暦
を2桁で扱ってきた従来の資産では、西暦を4桁に変更
するには変更のための作業工数および資源の拡張が必要
となり、2000年対策として極めて多くの工数および
資源の拡張が要求されてしまうという問題があった。
As described above, in the conventional assets in which the Christian era is treated with two digits, changing the Christian era to four digits requires an increase in the number of work steps and resources for the change. There was a problem that an extremely large number of man-hours and expansion of resources were required as measures for the year 2000.

【0005】本発明は、これらの問題を解決するため、
年を2桁で扱うアプリおよび資源ははそのままとし当該
アプリがアクセスするファイルなどとの間に変換処理を
行うフィルタ処理手段を設けて属性(フォーマット)を
変えることなく月2桁の最大数まで使用してライト/リ
ード時に変換/逆変換を行い、2000年対応を簡易に
実現することを目的としている。
[0005] The present invention solves these problems,
The application and resources that handle the year with two digits are left as they are, and a filter processing unit that performs conversion processing with the file etc. accessed by the application is provided, and the maximum number of two digits per month can be used without changing the attribute (format) Then, conversion / reverse conversion is performed at the time of writing / reading, and the purpose is to easily realize compliance with the year 2000.

【0006】[0006]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、フィルタ
処理手段8は、年2桁、月2桁で管理するものであっ
て、ここでは、ライト時に年2桁が年07以下の場合に
年99および月2桁に変換したり、リード時に年99の
場合に月2桁を年2桁および月2桁で月12以下に逆変
換したりするものである。
Means for solving the problem will be described with reference to FIG. In FIG. 1, the filter processing means 8 manages data with two digits for the year and two digits for the month. Here, if the two digits for the year are 07 or less at the time of writing, they are converted to 99 digits for the year and two digits for the month. In the case of a year 99 at the time of reading, the two-digit month is inversely converted to the month 12 or less by the two-digit year and the two-digit month.

【0007】フィルタ処理手段8が入力された年2桁、
月2桁について、年2桁が年07以下の場合に年99お
よび当該年2桁を月2桁に変換してファイルに書き込ん
だり、一方、ファイルから読み出した年2桁が年99の
場合に月2桁を年2桁および月2桁で月12以下に逆変
換して出力したりするようにしている。
The two-digit year input by the filter processing means 8;
Regarding the two-digit month, if the two-digit year is less than or equal to 07, the year 99 and the two-digit year are converted to two-digit month and written to the file. On the other hand, if the two-digit year read from the file is the 99 year, Two-digit month and two-digit year and two-month are inversely converted to 12 months or less for output.

【0008】また、変換処理手段が西暦2000年以上
のデータが入力されると、年データとして99を設定す
ると共に、入力されたデータと1999年12月との差
分に応じて月データを変換して出力するようにしてい
る。
[0008] When data of the year 2000 or more is input, the conversion processing means sets 99 as year data and converts month data in accordance with the difference between the input data and December 1999. Output.

【0009】従って、年を2桁で扱うアプリはそのまと
し当該アプリがアクセスするファイルなどとの間にフィ
ルタ処理手段8を設けてフォーマットを変えることなく
月2桁の最大数まで使用してライト/リード時に変換/
逆変換を行い、2000年対応を簡易に実現することが
可能となる。
Therefore, an application that handles a year with two digits is provided with a filter processing means 8 provided between the application and a file accessed by the application, and is written using the maximum number of two digits of the month without changing the format. / Convert when reading /
By performing the inverse conversion, it is possible to easily realize the year 2000 compliance.

【0010】[0010]

【発明の実施の形態】次に、図1から図5を用いて本発
明の実施の形態および動作を順次詳細に説明する。ここ
で、図示外の記録媒体あるいは外部記憶装置であるハー
ドディスク装置などから読み出したプログラム、または
センタの外部記憶装置から回線を介して転送を受けたプ
ログラムは、主記憶にローディングして起動し、以下に
説明する各種処理を行うものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an embodiment and operation of the present invention will be described in detail with reference to FIGS. Here, a program read from a recording medium (not shown) or a hard disk device as an external storage device, or a program transferred from an external storage device of the center via a line is loaded into the main storage and activated. Performs the various processes described in FIG.

【0011】図1は、本発明のシステム構成図を示す。
図1において、入力装置/キーボード1は、年(西暦)
を下2桁および月を2桁で入力するものであって、例え
ばキーボードなどである。
FIG. 1 shows a system configuration diagram of the present invention.
In FIG. 1, the input device / keyboard 1 indicates a year (A.D.).
Is entered in the last two digits and the month in two digits, such as a keyboard.

【0012】表示装置/ディスプレイ2は、年(西暦)
を2桁および月を2桁で表示したり、画面上から入力し
たりするものである。出力装置/プリンタ3は、年(西
暦)を2桁および月を2桁で出力するものであって、例
えばプリンタなどである。
The display device / display 2 has a year (AD)
Is displayed in two digits and the month is displayed in two digits, or input from the screen. The output device / printer 3 outputs the year (AD) in two digits and the month in two digits, and is, for example, a printer.

【0013】入出力装置4は、年2桁および月2桁を変
換した後の年2桁および月2桁を入出力するものであっ
て、例えば各種記憶装置であり、DB10のデータをそ
のまま保存したりなどするためのものである。
The input / output device 4 is for inputting / outputting the two-digit year and the two-month data obtained by converting the two-digit year and the two-month data. For example, the input / output device 4 is various storage devices and stores the data of the DB 10 as it is. It is for doing and so on.

【0014】処理装置5は、プログラム6に従い各種処
理を行うものであって、ここでは、図示のようにプログ
ラムA、フィルタ処理手段8、汎用プログラム9などが
動作するものである。
The processing device 5 performs various processes in accordance with the program 6, and here, the program A, the filter processing means 8, the general-purpose program 9 and the like operate as shown.

【0015】プログラムA7は、年(西暦)を2桁およ
び月を2桁で処理(西暦/月の域値処理、比較、演算な
どの処理)を行う従来の業務プログラムであって、西暦
00〜99内で正常に処理できる業務プログラムであ
る。
The program A7 is a conventional business program for processing the year (AD) with two digits and the month with two digits (processing such as threshold value processing, comparison, and calculation of the year / month). This is a business program that can be processed normally within the program 99.

【0016】フィルタ処理手段8は、西暦00〜99内
で処理するプログラムA7から受け取った西暦2桁、月
2桁の西暦データを、後述する変換してDB10にライ
トしたり、DB10からリードしたデータを後述する逆
変換して西暦データに戻してプログラムA7に渡すもの
である。
The filter processing means 8 converts the two-digit year and two-digit year data received from the program A7 for processing in the year 00 to 99 into the year described later and writes the converted data to the DB 10 or the data read from the DB 10 Is converted back to the Christian era data to be described later and passed to the program A7.

【0017】汎用プログラム9は、変換後の西暦データ
を扱うプログラムであって、変換後の西暦データが格納
されているDB10をアクセスしたり、DB10のデー
タをそのまま入出力装置4に渡したり、入出力装置4か
らのデータをDB10に書き込んだりなどするものであ
る。
The general-purpose program 9 is a program for handling the converted Christian data, accesses the DB 10 storing the converted Christian data, passes the data of the DB 10 to the input / output device 4 as it is, or For example, data from the output device 4 is written in the DB 10.

【0018】DB10は、データベースであって、本発
明に係る変換後の西暦データを格納するファイルの例で
ある。以上のような構成を持たせることにより、本発明
では、右下に記載したように、 西暦データがキーでも並びの逆転現象が起きない。
このため、DB10内の西暦データをキーに、2000
年を越えても2007年を越えるまではソートなどの処
理を従来と同様に行うことが可能である。
The DB 10 is a database, and is an example of a file for storing converted Christian data according to the present invention. By providing the above-described configuration, in the present invention, as described in the lower right, even if the Christian data is a key, the inversion phenomenon does not occur.
For this reason, the year 2000 data in the DB 10
Even if it exceeds the year, processing such as sorting can be performed in the same manner as before until 2007.

【0019】 従来のプログラムでも、2000年対
応が容易である。 汎用プログラム9でも処理可能である(フィルタ処
理が無くてもDB内の西暦データは外部10進数のた
め、データの大小比較判定で逆転を起こすことなく扱え
る)。以下順次詳細に説明する。
The conventional program can easily correspond to the year 2000. The general-purpose program 9 can also process the data (even if there is no filtering process, since the Christian era data in the DB is an external decimal number, it can be handled without inversion in the data size comparison judgment). The details will be sequentially described below.

【0020】図2は、本発明の動作説明図を示す。ま
ず、図2のS1からS5に従ってDBへの書き込み動作
を説明する。図2において、S1は、図1のプログラム
A7にキー入力(例えば“年00月11”)する。
FIG. 2 is a diagram for explaining the operation of the present invention. First, the write operation to the DB will be described according to S1 to S5 in FIG. In FIG. 2, S1 makes a key input (for example, "Year / Month 11") to the program A7 in FIG.

【0021】S2は、計算処理する。これは、年00月
11という従来の西暦2桁、月2桁を用いて各種業務処
理を行う。S3は、書き込み処理61を実行する。
In step S2, calculation processing is performed. In this case, various business processes are performed using a conventional two-digit year and two-digit month of the year 00/11. In step S3, a writing process 61 is executed.

【0022】S4は、S3の書き込み処理61を実行し
たことに対応して、フィルタ処理手段8がWRITE変
換を行い、“年99月23”に変換する。これは、後述
する図3で詳細に説明するように、年=99、月=(年
+1)×12+月に代入して月23を求め、“年99月
23”に変換する。
In step S4, in response to the execution of the write processing 61 in step S3, the filter processing means 8 performs WRITE conversion to convert the data into "99/23". As will be described in detail later with reference to FIG. 3, the month 23 is obtained by substituting year = 99, month = (year + 1) × 12 + month, and is converted into “year 99/23”.

【0023】S5は、S4で変換した後の“年99月2
3”をDB10に書き込む。この“年99月23”は、
実際には“西暦2000年11月”を表す。以上によっ
て、従来の年2桁月2桁(例えば“年00月11”)に
ついて、フィルタ処理手段8によって変換した後の年2
桁月2桁(例えば“年99月23”)をDB10に格納
し、2000年を越えても2007年までは従来のフォ
ーマット(年2桁月2桁)のままでDB10に保存する
ことが可能となる。
S5 is "September 2" after the conversion in S4.
3 ”is written in the DB 10. This“ September 23, ”
Actually, it represents "November 2000 AD". As described above, the conventional year 2 digits and month 2 digits (for example, “year 00/11”) are converted to the year 2
Two digits of the month (for example, “September 23”) can be stored in the DB10, and even if it exceeds 2000, it can be stored in the DB10 in the conventional format (two digits of the year, two digits of the month) until 2007. Becomes

【0024】次に、図2のS11からS14に従って、
DBからの読込処理を説明する。図2のS11は、西暦
2000年11月に対応するデータの読込みがプログラ
ムAから指定されたことを示す。
Next, according to S11 to S14 of FIG.
The reading process from the DB will be described. S11 in FIG. 2 indicates that the reading of the data corresponding to November 2000 is designated by the program A.

【0025】S12は、S11の読み込み処理62の実
行に対応して、DB10から該当する年2桁月2桁(例
えば“年99月23”)を読み出す。S13は、S12
で読み出した年2桁月2桁(例えば“年99月23”)
をREAD変換によって逆変換して元の年2桁月2桁
(例えば“年00月11”)に戻す。
In step S12, corresponding to the execution of the reading process 62 in step S11, a corresponding two-digit month and two-digit (for example, "99/23") is read from the DB 10. S13 is S12
2 digits of month read out in 2 digits of month (for example, "99/23")
Is inversely converted by READ conversion to return to the original two-digit year and two-digit month (for example, “Year / Month 11”).

【0026】S14は、S13で元に逆変換した後の年
2桁月2桁(例えば“年00月11”)を用いて各種計
算処理を行う。以上によって、DB10から読み出した
年2桁月2桁を逆変換して元の年2桁月2桁(例えば
“年00月11”)に戻した後、従来のフォーマット
(年2桁月2桁)のままで各種計算処理(域値処理、比
較処理、演算処理など)を行うことが可能となる。
In step S14, various calculation processes are performed using the two-digit year and two-digit year (for example, "Year / Month 11") after the inverse conversion in S13. As described above, the two-digit year and two-digit year read from the DB 10 are converted back to the original two-digit month and two-digit number (for example, “year 00/11”), and then converted to the conventional format (two-digit month and two-digit year). ) Can be used to perform various calculation processes (such as threshold processing, comparison processing, and arithmetic processing).

【0027】図3は、本発明のライト変換部の処理説明
図を示す。これは、図2のフィルタ処理手段8が従来の
西暦データ(年2桁月2桁)を本発明に係る年2桁月2
桁に変換するときの手順を詳細に示したものである。
FIG. 3 is a diagram for explaining the processing of the write conversion unit according to the present invention. This is because the filter processing means 8 of FIG. 2 replaces the conventional year data (two digits of year and two digits of month) with two digits of year and two months of the present invention.
It shows the procedure for converting to a digit in detail.

【0028】図3の(a)は、フローチャートを示す。
図3の(a)において、S21は、年<7か判別する。
これは、西暦4桁のうちの下2桁の値が07以下か判別
する。YESの場合には、S22に進む。NOの場合に
は、本発明の対象外であるので、終了する。
FIG. 3A shows a flowchart.
In FIG. 3A, S21 determines whether year <7.
It is determined whether the value of the last two digits of the four digits of the year is 07 or less. In the case of YES, the process proceeds to S22. In the case of NO, it is out of the scope of the present invention, and the process ends.

【0029】S22は、 ・月=(年+1)×12+月 (式1) に代入して変換後の月を求める。In step S22, the month is calculated by substituting into the following equation: month = (year + 1) × 12 + month (Equation 1).

【0030】S23は、 ・年=99 (式2) と設定する。In step S23, the year is set as follows: year = 99 (formula 2)

【0031】以上によって、既述した図2の従来の西暦
2桁月2桁を、本発明に係る年2桁月2桁に変換するこ
とが可能となる。図3の(b)は、本発明のライト処理
の具体例を示す。
As described above, it is possible to convert the above-described conventional two-digit month and two-digit year of FIG. 2 into two-digit year and two-month month according to the present invention. FIG. 3B shows a specific example of the write processing of the present invention.

【0032】ここでは、“年01月03”の場合につい
て、 ・年=99 (式1より求める) ・月=(年+1)×12+月 =(01+1)×12+03 =27 (式2より求める) と計算する。
Here, in the case of “January 03”, year = 99 (determined by equation 1) Month = (year + 1) × 12 + month = (01 + 1) × 12 + 03 = 27 (determined by equation 2) Is calculated.

【0033】従って、変換後は、“年99月27”とな
る。図4は、本発明のリード変換部の処理説明図を示
す。これは、図2のフィルタ処理手段8がDB10から
読み出した本発明に係る年2桁月2桁の年データを、従
来の西暦データ(年2桁月2桁)に逆変換するときの手
順を詳細に示したものである。
Therefore, after the conversion, the date is "September 27". FIG. 4 is a diagram for explaining the processing of the read conversion unit of the present invention. This is the procedure when the filter processing means 8 of FIG. 2 reversely converts year data of two digits and two digits of the year according to the present invention read from the DB 10 to conventional Christian data (two digits of year and two digits of month). This is shown in detail.

【0034】図4の(a)は、フローチャートを示す。
図4の(a)において、S31は、月>12か判別す
る。これは、本発明に係る年2桁月2桁のうちの月2桁
が12よりも大きいか判別する。YESの場合には、S
32に進む。NOの場合には、本発明の対象外であるの
で、終了する。
FIG. 4A shows a flowchart.
In FIG. 4A, S31 determines whether month> 12. This determines whether the two-digit month of the two-digit year and two-digit month according to the present invention is greater than twelve. If YES, S
Go to 32. In the case of NO, it is out of the scope of the present invention, and the process ends.

【0035】S32は、年=99か判別する。YESの
場合には、本発明に係る年2桁月2桁の年データと判明
したので、S33に進む。NOの場合には、本発明の対
象外であるので終了する。
A step S32 decides whether the year = 99. In the case of YES, it is determined that the year data is a two-digit year and two-digit year data according to the present invention, so the flow proceeds to S33. In the case of NO, it is out of the scope of the present invention, and the process ends.

【0036】S33は、 ・年=(月−1)÷12の商−1 (式3) に代入して変換後の年を求める。In step S33, the year is obtained by substituting into the following equation: (year = (month-1) ÷ 12 quotient-1) (Equation 3)

【0037】S34は、 ・月=(月−1)÷12の余り+1 (式4) に代入して変換後の月を求める。In step S34, the month is calculated by substituting into the following equation: month = (month-1) ÷ the remainder of 12 + 1 (Equation 4).

【0038】以上によって、既述した図2の本発明に係
る年2桁月2桁を、従来の西暦2桁月2桁に逆変換する
ことが可能となる。図4の(b)は、本発明のリード処
理の具体例を示す。
As described above, the two-digit year and two-digit year according to the present invention shown in FIG. 2 can be inversely converted into the conventional two-digit month and two-digit year. FIG. 4B shows a specific example of the read processing of the present invention.

【0039】ここでは、“年99月27”の場合につい
て、 ・年=(月−1)÷12の商−1 =(27−1)÷12の商−1 =2−1=1 (式3より求める) ・月=(月−1)÷12の余り+1 =(27−1)÷12の余り+1 =2+1=3 (式4より求める) と計算する。
Here, in the case of “September 27”, year = (month−1) ÷ 12 quotient−1 = (27−1) ÷ 12 quotient−1 = 2-1 = 1 (expression・ Calculate as follows: Month = (Month−1) ÷ Remainder of + 1 + 1 = (27−1) ÷ Remainder of 12 + 1 + 1 = 2 + 1 = 3 (Calculated from Equation 4)

【0040】従って、逆変換後は、“年01月03”と
なる。図5は、本発明の対象とするデータベースの説明
図を示す。図5の(a)は、データベースのファイル例
を示す。データベースのファイルの論理ファイル構造
は、索引編成、相対編成、順編成整列併合であり、キー
部に年月の項目がある例を示す。
Therefore, after the inverse conversion, it becomes "January 03". FIG. 5 is an explanatory diagram of a database to which the present invention is applied. FIG. 5A shows an example of a database file. The logical file structure of the database file is an index organization, a relative organization, a sequential organization sort and merge, and shows an example in which a key portion has a date item.

【0041】索引編成であれば、図示のようにキー部に
年月の項目を持ち、指定された年月をキーとして対応す
るデータが格納される。キー部に年月のデータを含むた
め、本願発明の変換処理を利用して指定年月に対応する
データ部のデータの読み書きが可能となるものである。
In the case of the index organization, as shown in the figure, a key section has an item of year and month, and corresponding data is stored using the designated year and month as keys. Since the key portion contains the date data, the data of the data portion corresponding to the designated date can be read and written using the conversion processing of the present invention.

【0042】図5の(b)、(c)は、変換の具体例を
示す。図5の(b)は、READ変換の説明を示す。・
前提条件:月>12 AND 年=99である。これ
は、変換後の本発明に係る年2桁月2桁の西暦データ
は、月が12以上ないし99、年=99と設定している
ので、これらの条件を判定するようにしたものである。
本発明に係る年2桁月2桁の西暦データを、元の従来の
年2桁月2桁に逆変換するには、既述した(式3)、
(式4)である下記によって逆変換する。
FIGS. 5B and 5C show specific examples of the conversion. FIG. 5B illustrates the description of the READ conversion.・
Precondition: month> 12 AND year = 99. This is because the converted 2-year year 2-month year data according to the present invention has the month set to 12 or more to 99 and the year = 99, and thus these conditions are determined. .
To convert the two-digit year and two-digit year data according to the present invention back to the original conventional two-digit month and two-digit year, as described above (Equation 3),
Inverse conversion is performed by the following (Equation 4).

【0043】・年=(月−1)÷12の商−1 ・月=(月−1)÷12の余り+1 例えば例1)“年99月13”の場合には、 ・年=(13−1)÷12の商−1=1−1=0 ・月=(13−1)÷12の余り+1=0+1=1 となり、逆変換後は、“年00月01”となる。Year = (Month-1) ÷ 12 quotient−1—Month = (Month−1) ÷ Remainder of + 1 + 1 For example 1) In the case of “September 13”: Year = (13 -1) Quotient of $ 12 -1 = 1-1 = 0-Month = (13-1) Remainder of $ 12 + 1 = 0 + 1 = 1. After inverse conversion, it becomes "00/01".

【0044】例えば例2)“年99月47”の場合に
は、・年=(47−1)÷12の商−1=3−1=2 ・月=(47−1)÷12の余り+1=10+1=11 となり、逆変換後は、“年02月11”となる。
Example 2) In the case of "99/47", the quotient of year = (47-1) / 12 is -1 = 3-1 = 2. The remainder of month = (47-1) / 12. + 1 = 10 + 1 = 11, and becomes “February 11” after the inverse conversion.

【0045】図5の(c)は、WRITE変換の説明を
示す。 ・前提条件:年<7 である。これは、変換前の従来の年2桁月2桁の西暦デ
ータのうち、本発明が対象とする年=07(西暦200
7年)以下を前提条件としたものである。従来の年2桁
月2桁の西暦データを、本発明に係る年2桁月2桁に変
換するには、既述した(式1)、(式1)である下記に
よって変換する。
FIG. 5C illustrates the WRITE conversion. -Precondition: year <7. This is because, of the conventional 2-digit year and 2-digit year data before conversion, year = 07 (200 AD)
7 years) The following are prerequisites. In order to convert conventional 2-digit year / month 2-digit year data into 2-digit year / month 2-digit according to the present invention, conversion is performed by the following (Formula 1) and (Formula 1) described above.

【0046】・年=99 ・月=(年+1)×12+月 例えば例3)“年00月01”の場合には、 ・年=99 ・月=(年+1)×12+月=(00+1)×12+0
1=13 となり、変換後は、“年99月13”となる。
Year = 99 Month = (year + 1) × 12 + month For example 3) In case of “Month 01”, year = 99 Month = (year + 1) × 12 + month = (00 + 1) × 12 + 0
1 = 13, and after conversion, it is “99/13”.

【0047】例えば例4)“年02月11”の場合に
は、 ・年=99 ・月=(年+1)×12+月=(02+1)×12+1
1=47 となり、逆変換後は、“年99月47”となる。
Example 4) In the case of "February 11", year = 99 month = (year + 1) × 12 + month = (02 + 1) × 12 + 1
1 = 47, and becomes “September 47” after the inverse conversion.

【0048】尚、従来の西暦の年2桁月2桁を、本発明
の変換により年2桁月2桁に変換したときに、既述した
(式2)で“年99”に固定的に設定(変換)したが、
これに限ることなく、変換後に意味を持たない00、0
1、02、03、04、06、07と、99を含め、こ
れらのうちの1つあるいは任意の数字を当該年2桁に使
用するようにしてもよい(使用した場合には、当然に逆
変換のときに使用した数字を99の替わりにして逆変換
することとなる)。
When the conventional two-digit year and two-digit year in the Christian era are converted to two-digit year and two-digit year by the conversion according to the present invention, a fixed value of "year 99" is obtained by (Equation 2) described above. After setting (converting),
Without being limited to this, 00, 0 that have no meaning after conversion
One or any of these numbers, including 1, 02, 03, 04, 06, 07, and 99, may be used for the two digits of the year (if used, the reverse is of course the case). The number used at the time of conversion will be inverted instead of 99.)

【0049】[0049]

【発明の効果】以上説明したように、本発明によれば、
入力された西暦を示す年2桁月2桁について、年2桁が
年07以下の場合に年99および当該年2桁を月2桁に
変換してデータベース等のファイルに書き込み、一方、
ファイルから読み出した年2桁が年99の場合に月2桁
を年2桁および月2桁で月12以下に逆変換して出力す
るなどの構成を採用する。従って、西暦2000年以上
のデータが入力され、1999年以前のデータとデータ
ベース上で混在しても、データ長を変更することなく、
データベース上での年号データの大小判定、並べ替え等
の順序を正しく処理できる。
As described above, according to the present invention,
Regarding the input two-digit year and two-digit month indicating the year, when the two-digit year is less than or equal to 07, the year 99 and the two-digit year are converted to two-digit months and written to a file such as a database.
When the two-digit year read from the file is the year 99, a configuration is adopted in which the two-digit month is inversely converted to a month of 12 or less with two-digit year and two-digit month and output. Therefore, even if data of more than 2000 AD is input and data before 1999 is mixed with data on the database, the data length is not changed,
It is possible to correctly process the order of size determination and sorting of year data on a database.

【0050】また、年を2桁で扱うアプリは従来のまま
とし当該アプリがアクセスするファイルなどとの間にフ
ィルタ処理手段8を設けてフォーマットを変えることな
く月2桁の最大数まで使用してライト/リード時に変換
/逆変換を行い、2000年対応を簡易に実現すること
ができる。
The application that handles the year with two digits is left as it is in the past, and the filter processing means 8 is provided between the application and the file to be accessed to use the maximum number of two digits per month without changing the format. Conversion / inverse conversion is performed at the time of writing / reading, so that the year 2000 can be easily realized.

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

【図1】本発明のシステム構成図である。FIG. 1 is a system configuration diagram of the present invention.

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

【図3】本発明のライト処理説明図である。FIG. 3 is an explanatory diagram of a write process according to the present invention.

【図4】本発明のリード処理説明図である。FIG. 4 is an explanatory diagram of a read process according to the present invention.

【図5】本発明の具体例説明図である。FIG. 5 is an explanatory diagram of a specific example of the present invention.

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

1:入力装置/キーボード 2:表示装置/ディスプレイ 3:出力装置/プリンタ 4:入出力装置 5:処理装置 6:プログラム/アプリ 7:プログラムA 8:フィルタ処理手段 9:汎用プログラム 10:DB/ファイル 11:入出力装置 1: input device / keyboard 2: display device / display 3: output device / printer 4: input / output device 5: processing device 6: program / application 7: program A 8: filter processing means 9: general-purpose program 10: DB / file 11: I / O device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 斉藤 正 神奈川県横浜市西区みなとみらい2丁目2 番1号の1 株式会社富士通京浜システム エンジニアリング内 ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Tadashi Saito 2-1-1 Minato Mirai, Nishi-ku, Yokohama-shi, Kanagawa Prefecture Fujitsu Keihin System Engineering Co., Ltd.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】2桁の年でデータを管理する年データ管理
装置において、 年2桁、月2桁で入出力する手段と、 上記入力された年2桁、月2桁について、年2桁が年0
7以下の場合に年99および当該年2桁を月2桁に変換
してファイルに書き込み、一方、ファイルから読み出し
た年2桁が年99の場合に月2桁を年2桁および月2桁
で月12以下に逆変換して出力するフィルタ処理手段と
を備えたことを特徴とする年データ管理装置。
1. A year data management device for managing data with a two-digit year, means for inputting / outputting a two-digit year and a two-digit month; Is year 0
If the value is 7 or less, the year 99 and the corresponding two-digit year are converted to two-month digits and written to the file. On the other hand, if the two-digit year read from the file is the year 99, the two-month month is converted to two-year and two-digit months. And a filter processing means for inverting the data to a month or less and outputting the result.
【請求項2】西暦年の下2桁で年データを管理する年デ
ータ管理装置において、 西暦2000年以上のデータが入力されると、年データ
として99を設定すると共に、入力されたデータと19
99年12月との差分に応じて月データを変換して出力
する変換処理手段を備えたことを特徴とする年データ管
理装置。
2. In a year data management apparatus for managing year data with the last two digits of the year, when data of year 2000 or more is input, 99 is set as year data, and the input data and 19
An year data management device comprising a conversion processing means for converting and outputting month data according to a difference from December 1999.
【請求項3】コンピュータにより西暦年の下2桁で年デ
ータを管理する年データ管理プログラムを記録した記録
媒体であって、 西暦2000年以上のデータが入力されると、年データ
として99を設定すると共に、入力されたデータと19
99年12月との差分に応じて月データを変換して出力
させることを特徴とする年データ管理プログラムを記録
した記録媒体。
3. A recording medium recording a year data management program for managing year data with the last two digits of the year by a computer, wherein when data of 2000 years or more is input, 99 is set as year data. Along with the entered data and 19
A recording medium on which a year data management program is recorded, wherein month data is converted and output according to a difference from December 1999.
【請求項4】年2桁、月2桁で入出力する手段と、 上記入力された年2桁、月2桁について、年2桁が年0
7以下の場合に年99および当該年2桁を月2桁に変換
してファイルに書き込み、一方、ファイルから読み出し
た年2桁が年99の場合に月2桁を年2桁および月2桁
で月12以下に逆変換して出力するフィルタ処理手段と
して機能させるプログラムを記録したコンピュータ読み
取り可能な記録媒体。
4. A means for inputting and outputting a two-digit year and a two-digit month; and for the input two-digit year and a two-month month, the two-digit year is the year 0.
If the value is 7 or less, the year 99 and the corresponding two-digit year are converted to two-month digits and written to the file. On the other hand, if the two-digit year read from the file is the year 99, the two-month month is converted to two-year and two-digit months. A computer-readable recording medium on which a program for functioning as a filter processing means for inversely converting the data to 12 or less and outputting the data is stored.
JP9309067A 1997-11-11 1997-11-11 Year data management system and storage medium Withdrawn JPH11143857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9309067A JPH11143857A (en) 1997-11-11 1997-11-11 Year data management system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9309067A JPH11143857A (en) 1997-11-11 1997-11-11 Year data management system and storage medium

Publications (1)

Publication Number Publication Date
JPH11143857A true JPH11143857A (en) 1999-05-28

Family

ID=17988493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9309067A Withdrawn JPH11143857A (en) 1997-11-11 1997-11-11 Year data management system and storage medium

Country Status (1)

Country Link
JP (1) JPH11143857A (en)

Similar Documents

Publication Publication Date Title
US7580916B2 (en) Adjustments to relational chart of accounts
EP1610234A1 (en) Online transactional data processing system
JPH11143857A (en) Year data management system and storage medium
EP3933635B1 (en) Anonymizing apparatus, anonymizing method, and program
JPH06309343A (en) Data totalizing method
WO2020184126A1 (en) Data substitution device, data substitution method, and program
JP3736053B2 (en) Data item approximation analysis apparatus and method
JP3337469B2 (en) Information processing device
JP3456481B2 (en) Information processing device
JP2760755B2 (en) Method of storing and redisplaying the operation button history for computer processing
JP3632982B2 (en) File management method
JP2024121470A (en) Social insurance premium processing device, social insurance premium processing method, and social insurance premium processing program
JP2851071B2 (en) Database device
JP2000298607A (en) Information processor
JPH0667945A (en) Electronic filing device
JPH0224767A (en) Data processor
JPH0287269A (en) Data controller
JP2007293467A (en) Information processor
Das A Complete Guide to Computer Fundamentals
JPH05216724A (en) File memory device
Piper Cambridge International AS and A Level Computing Revision Guide
Hayden How electronic computers work: a lawyer looks inside the new machines
JPH01112365A (en) Data processor
JPS61153758A (en) Business form processor
JPH02297279A (en) Document processor with next registration code display function

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: 20050201