JPH0527947A - Annual guarantee method - Google Patents
Annual guarantee methodInfo
- Publication number
- JPH0527947A JPH0527947A JP3177982A JP17798291A JPH0527947A JP H0527947 A JPH0527947 A JP H0527947A JP 3177982 A JP3177982 A JP 3177982A JP 17798291 A JP17798291 A JP 17798291A JP H0527947 A JPH0527947 A JP H0527947A
- Authority
- JP
- Japan
- Prior art keywords
- year
- digits
- code
- last
- processing
- 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 title claims abstract description 18
- 230000001174 ascending effect Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
Landscapes
- Calculators And Similar Devices (AREA)
Abstract
(57)【要約】
【目的】デ−タファイル中の西暦の下2ケタで年度を管
理している場合でも、現状のデ−タファイルフォ−マッ
トで、西暦2000年以降も年度順を保証する。
【構成】年度の大小判定,ソ−ト・マ−ジ処理の前に、
西暦2000年対応ユティリティモジュ−ル10を起動
する。その後、外部パラメタ9により予め西暦下2ケタ
が格納されているレコ−ド中の位置を指定し、予め指定
した範囲の西暦を示すコードを、年度の順序が維持され
る様に他のコードを置き換える。
(57) [Summary] [Purpose] Even if the year is managed by the last two digits of the year in the data file, the current data file format ensures the year order even after the year 2000. [Structure] Before the judgment of the size of the year and the process of sorting and sorting,
The utility module 10 corresponding to the year 2000 is started. After that, the position in the record where the two digits below the year are stored in advance is designated by the external parameter 9, and the code indicating the year in the designated range is changed to another code so that the year order is maintained. replace.
Description
【0001】[0001]
【産業上の利用分野】本発明は、西暦の下2桁が格納さ
れているデ−タファイルに対する、プログラムによる大
小判定及びソ−ト・マ−ジ処理での昇降順を保証し、正
常な結果を得る西暦2000年に対応した年度順保証方
法に関するものである。BACKGROUND OF THE INVENTION The present invention guarantees the order of ascending / descending in the size judgment and sort / margin processing by a program for a data file in which the last two digits of the Christian era are stored. The present invention relates to a year-based guarantee method corresponding to the year 2000.
【0002】[0002]
【従来の技術】従来のコンピュータシステムでは、デー
タファイル中に、西暦の下2桁が格納されている。な
お、この種の技術に関するものとしては、例えば、特開
昭58−1229号公報や、特開平3−22117号公
報がある。2. Description of the Related Art In a conventional computer system, a data file stores the last two digits of the year. Note that, regarding this type of technology, there are, for example, Japanese Patent Laid-Open No. 58-1229 and Japanese Patent Laid-Open No. 3-22117.
【0003】[0003]
【発明が解決しようとする課題】上記従来技術は、西暦
2000年以降の場合を考慮しておらず、デ−タファイ
ル中の西暦の下2桁で年度を管理している。そのため、
西暦2000年以降では、通常の年度による大小判定処
理及びソ−ト・マ−ジ処理での昇降順序処理を行った場
合、その大小関係は、数1で表わされる。The prior art described above does not consider the case after the year 2000, but manages the year by the last two digits of the year in the data file. for that reason,
In the year 2000 and thereafter, when the size determination process and the ascending / descending order process in the sort / marge process are performed in the normal year, the magnitude relationship is expressed by the equation 1.
【0004】[0004]
【数1】 [Equation 1]
【0005】つまり、2000年は、1999年よりも
大きいと判断されなければならないにも関わらず、判断
にあたっては、西暦の下2桁しか用いないので、00は
99より小さいことから、2000年は1999年より
も小さいと判断されてしまう。これを解決する方法とし
て、西暦を4桁にすることが考えられるが、この場合、
デ−タファイルのレコ−ド長,ブロック長を変更するこ
とが必要となり、また、プログラム修正も発生してしま
うという問題点がある。That is, although the year 2000 must be judged to be greater than the year 1999, only the last two digits of the year are used in the judgment, so 00 is less than 99. It is judged that it is smaller than 1999. As a method of solving this, it is conceivable to change the year to 4 digits, but in this case,
There is a problem that it is necessary to change the record length and block length of the data file, and the program is also modified.
【0006】本発明の目的は、コ−ドの体系を生かし、
現状のデ−タファイルフォ−マットで西暦2000年以
降も対応可能な西暦2000年に対応した年度順保証方
法を提供することにある。The object of the present invention is to utilize the code system,
An object of the present invention is to provide a year-by-year guarantee method compatible with the year 2000 that can be used even after the year 2000 with the current data file format.
【0007】[0007]
【課題を解決するための手段】上記目的を達成するため
に、記憶手段と処理部を有するコンピュ−タシステムに
おいて、前記記憶手段に1900年代と2000年代の
西暦の下2桁が格納されている場合、処理部は、西暦の
下2桁のうち十の位のコードを、年度の順序を維持する
コードに置き換えることにしたものである。To achieve the above object, in a computer system having a storage means and a processing section, the storage means stores the last two digits of the 1900s and 2000s. The processing unit replaces the tens digit code of the last two digits of the year with a code that maintains the order of the year.
【0008】[0008]
【作用】1900年代と2000年代の西暦を示すデー
タが混在する場合、年度の順序が維持される様に、西暦
を示すデータのコードを他のコードと置き換える。これ
により、大小判定、昇降順序処理が保証される。When the data representing the 1900s and 2000s are mixed, the code of the data representing the year is replaced with another code so that the year order is maintained. As a result, size determination and ascending / descending order processing are guaranteed.
【0009】[0009]
【実施例】図1は、本発明の一実施例のプログラムの構
成図である。1 is a block diagram of a program according to an embodiment of the present invention.
【0010】6は、下2桁のみの西暦を含むデータが格
納されたファイルである。7は、プログラムである。8
は、ワークエリアである。9は、パラメタである。10
は、西暦2000年対応ユティリティモジュールであ
る。Reference numeral 6 is a file in which data including the last two digits of the Western calendar is stored. 7 is a program. 8
Is a work area. 9 is a parameter. 10
Is a utility module corresponding to the year 2000.
【0011】西暦2000年対応ユティリティモジュ−
ル10(以下モジュール10とする)は、プログラム7
やユティリティで指定されると動作し、年度を取扱う処
理の前処理として位置付けられる。なお、モジュール1
0には、予め、コード変換を行なう下2桁の範囲を指定
しておく。置き換えるのは、1900年代で下2桁が一
番小さい数よりも下2桁が小さい2000年代の数であ
る。例えば、ファイル6中のデータの西暦が1973年
から始まる場合は、下2桁が00(2000年)から7
2(2072年)までを変換する。本実施例は、ファイ
ル6には1960年からのデータが有る場合の例でなの
で、下2桁が00〜59の場合にコード変換をするよう
に範囲を指定する。なお、本実施例では、コードとして
EBCDICコードを用いている。Utility module compatible with the year 2000
Module 10 (hereinafter referred to as module 10) is program 7
It operates when specified by the utility or utility, and is positioned as a pre-process for the process of handling the year. Module 1
For 0, the range of the last two digits for code conversion is designated in advance. It replaces the numbers in the 2000s with the last two digits less than the lowest two digits in the 1900s. For example, if the year of the data in file 6 begins in 1973, the last two digits are 00 (2000) to 7
Convert up to 2 (2072). Since the present embodiment is an example of the case where the file 6 has data from 1960, the range is designated so that the code conversion is performed when the last two digits are 00 to 59. In this embodiment, the EBCDIC code is used as the code.
【0012】次に、処理手順を説明する。まず、プログ
ラム7は、年度判定を行う前段階でモジュ−ル10の呼
び出し処理を行う。その後、モジュ−ル10では以下の
処理を行う。Next, the processing procedure will be described. First, the program 7 executes a process of calling the module 10 before the year determination. Then, the module 10 performs the following processing.
【0013】パラメタ解析処理1:外部より与えられた
パラメタ9を入力して内容を解析し、ワ−クエリア名及
びレコード中の西暦下2桁の開始位置を認識する。Parameter analysis processing 1: The parameter 9 given from the outside is input and the content is analyzed to recognize the work area name and the start position of the last two digits of the Christian era.
【0014】ワ−クエリア入力処理2:パラメタ解析処
理1で得たワ−クエリア名からデ−タを入力する。Work area input processing 2: Data is input from the work area name obtained in the parameter analysis processing 1.
【0015】年度判定処理3:パラメタ解析処理1で得
た、レコード中の西暦下2桁の開始位置からの2バイト
を判定し、一定の範囲内の時、本実施例では’00’か
ら’59’の範囲の場合に置換処理4を行う。それ以外
は、次のデ−タを入力する。Year determination processing 3: 2 bytes from the start position of the last two digits of the year in the record obtained by the parameter analysis processing 1 are determined, and when within a certain range, in this embodiment, from "00" to " In the case of the range of 59 ', the replacement process 4 is performed. Otherwise, enter the following data.
【0016】置換処理4:レコード中の西暦下2桁のう
ち十の位を表1の様に置換する。Replacement process 4: The tens digit of the last two digits of the Christian era in the record is replaced as shown in Table 1.
【0017】[0017]
【表1】 [Table 1]
【0018】ワ−クエリア出力処理5:置換処理4を行
ったデ−タをワ−クエリア8に出力する。Work area output processing 5: The data subjected to the replacement processing 4 is output to the work area 8.
【0019】表1に示される様に、文字コードを置き換
えることにより、1990年よりも2000年が、20
00年代より2010年が大きいと判断される。As shown in Table 1, by replacing the character code, the year 2000 is 20
It is judged that 2010 is larger than the 2000s.
【0020】なお、本実施例では、EBCDIKコード
で、2000年以上の場合、表1に示すコードの置き換
え処理を行ったが、2000年未満の場合に、表2の様
に、空いているコードと置き換えてもよい。このやり方
では、例えば、ファイル6に1999年からのデータが
有る場合ならば、2098年まで対応できる。In the present embodiment, the EBCDIK code is replaced with the code shown in Table 1 in the case of 2000 years or more. May be replaced with In this way, for example, if the file 6 has data from 1999, it is possible to support up to 2098.
【0021】[0021]
【表2】 [Table 2]
【0022】また、2000年未満の場合に、X’F
0’→X’C0’等、使用しているコードと置き換えて
もよい。In the case of less than 2000, X'F
It may be replaced with the code used, such as 0 '→ X'C0'.
【0023】また、2000年代の場合に、X’F0’
→X’C0’と、1900年代の場合に、X’F0’→
X’B0’と置き換えてもよい。つまり、2000年代
と1900年代の両方を他のコードに置き換えてもよ
い。In the case of the 2000s, X'F0 '
→ X'C0 'and X'F0' in the 1900s →
It may be replaced with X'B0 '. That is, both 2000s and 1900s may be replaced with other codes.
【0024】また、使用する文字コードはJISコード
やASCIIコード等でも構わない。 つまり、年度の
大小関係等を判断するときに、判断が正常に行える様に
コードの置き換えを行えばよい。The character code used may be JIS code, ASCII code, or the like. In other words, when judging the magnitude relation of the year, the code may be replaced so that the judgment can be performed normally.
【0025】[0025]
【発明の効果】年度の大小関係判定が正常に行える様に
コードの置き換えを行うことにより、デ−タファイルの
レコ−ド長,ブロック長を変更せず、またプログラム修
正もせずに年度の順序が保証されるという効果がある。[Effects of the Invention] By replacing the code so that the magnitude relation of the year can be judged normally, the record length and block length of the data file are not changed, and the year order is changed without modifying the program. It has the effect of being guaranteed.
【0026】[0026]
【図1】プログラムの構成を示す図である。FIG. 1 is a diagram showing a configuration of a program.
1…パラメタ解析処理、2…ワークエリア入力処理、3
…年度判定処理、4…置換処理、5…ワークエリア出力
処理、6…ファイル、7…プログラム、8…ワークエリ
ア、9…パラメタ、10…西暦2000年対応ユティリ
ティモジュール。1 ... Parameter analysis processing, 2 ... Work area input processing, 3
... Year determination process, 4 ... Replacement process, 5 ... Work area output process, 6 ... File, 7 ... Program, 8 ... Work area, 9 ... Parameter, 10 ... Year 2000 compatible utility module.
Claims (1)
ステムにおいて、前記記憶手段に1900年代と200
0年代の西暦の下2桁が格納されている場合、処理部
は、西暦の下2桁のうち十の位のコードを、年度の順序
を維持するコードに置き換えることを特徴とする年度順
保証方法。Claims: What is claimed is: 1. A computer system having a storage means and a processing section, wherein the storage means stores 1900's and 200's.
When the last two digits of the year 0 are stored, the processing unit replaces the tens code of the last two digits of the year with a code that maintains the order of the year. Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3177982A JPH0527947A (en) | 1991-07-18 | 1991-07-18 | Annual guarantee method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3177982A JPH0527947A (en) | 1991-07-18 | 1991-07-18 | Annual guarantee method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0527947A true JPH0527947A (en) | 1993-02-05 |
Family
ID=16040471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3177982A Pending JPH0527947A (en) | 1991-07-18 | 1991-07-18 | Annual guarantee method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0527947A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09212338A (en) * | 1996-02-02 | 1997-08-15 | Fujitsu Ltd | Alignment processing device |
JPH113325A (en) * | 1997-06-12 | 1999-01-06 | Melco:Kk | Method for processing two-digit numerical character and operation element |
JPH11110369A (en) * | 1997-10-01 | 1999-04-23 | Fujitsu Ltd | INFORMATION PROCESSING DEVICE, INFORMATION PROCESSING SYSTEM, ACCEPTANCE METHOD FOR INFORMATION PROCESSING DEVICE, AND COMPUTER-READABLE RECORDING MEDIUM ON WHICH ACCEPTATION PROGRAM IS RECORDED |
US5926814A (en) * | 1997-09-22 | 1999-07-20 | Consist International | System and method for processing a new calendar system |
JP2000010958A (en) * | 1998-06-17 | 2000-01-14 | Nec Software Chugoku Ltd | Christian year sorting method/device |
JP2004295901A (en) * | 2004-04-15 | 2004-10-21 | Fujitsu Ltd | Information processing equipment |
-
1991
- 1991-07-18 JP JP3177982A patent/JPH0527947A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09212338A (en) * | 1996-02-02 | 1997-08-15 | Fujitsu Ltd | Alignment processing device |
JPH113325A (en) * | 1997-06-12 | 1999-01-06 | Melco:Kk | Method for processing two-digit numerical character and operation element |
US5926814A (en) * | 1997-09-22 | 1999-07-20 | Consist International | System and method for processing a new calendar system |
JPH11110369A (en) * | 1997-10-01 | 1999-04-23 | Fujitsu Ltd | INFORMATION PROCESSING DEVICE, INFORMATION PROCESSING SYSTEM, ACCEPTANCE METHOD FOR INFORMATION PROCESSING DEVICE, AND COMPUTER-READABLE RECORDING MEDIUM ON WHICH ACCEPTATION PROGRAM IS RECORDED |
JP2000010958A (en) * | 1998-06-17 | 2000-01-14 | Nec Software Chugoku Ltd | Christian year sorting method/device |
JP2004295901A (en) * | 2004-04-15 | 2004-10-21 | Fujitsu Ltd | Information processing equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0776958B2 (en) | Document shaping device | |
CN111046636A (en) | Method and device for screening PDF file information, computer equipment and storage medium | |
JPH0527947A (en) | Annual guarantee method | |
CN1329309A (en) | Multi-languages user interface for operating system | |
US20130304668A1 (en) | Automated business process modeling | |
JPH0667871A (en) | Automatic program updating system | |
JP7444930B2 (en) | Index calculation device, index calculation method and program | |
CN118133779B (en) | Special character coding processing method and device for Bluetooth watch ligature variant | |
US20020002553A1 (en) | Date formatting system | |
JP2833871B2 (en) | Alien name data judgment method | |
JPH0553801A (en) | Stack consumption retrieving system | |
JP3371434B2 (en) | Layout editing device | |
JPS62217339A (en) | Data storing system for data base management system | |
JPH05151052A (en) | Automatic granting system and automatic conversion system for file name | |
JPH11224279A (en) | Cad data managing device | |
JPS61168039A (en) | Processing system for code conversion | |
JP2001256092A (en) | Dynamic automatic setting method by variable of download destination file name | |
JP3305858B2 (en) | Automatic figure creation device and automatic figure creation method | |
CN117891864A (en) | A method and system for dynamically collecting data based on custom templates | |
JPH07334399A (en) | Code conversion system for fixed length record | |
JPS6385818A (en) | Program data area forming system | |
JPS5999538A (en) | Document data conversion processing method | |
JPH03229322A (en) | Automatic transcribing system | |
JPS5960664A (en) | Message output method of database management system | |
JP2007310589A (en) | Input conversion learning program, input conversion learning method, and input conversion learning device |