JPH11194922A - Client/server data conversion system - Google Patents

Client/server data conversion system

Info

Publication number
JPH11194922A
JPH11194922A JP36877997A JP36877997A JPH11194922A JP H11194922 A JPH11194922 A JP H11194922A JP 36877997 A JP36877997 A JP 36877997A JP 36877997 A JP36877997 A JP 36877997A JP H11194922 A JPH11194922 A JP H11194922A
Authority
JP
Japan
Prior art keywords
character string
variable
byte
specified
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.)
Pending
Application number
JP36877997A
Other languages
Japanese (ja)
Inventor
Miyoe Nakada
弥代恵 仲田
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP36877997A priority Critical patent/JPH11194922A/en
Publication of JPH11194922A publication Critical patent/JPH11194922A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform accurate data generation and screen designing in a short time by calculating the number of specific character strings which should be added so that a variable after a trimming process is as long as a character string consisting of a specific number of digits and adding a calculated additional character string to the variable. SOLUTION: A trimming means 21 trims the contents of the variable included in an argument, i.e., deletes Null or spaces before and behind a character string. An additional digit number calculating means 22 calculates how many specific character strings need to be added so that the variable after the trimming process is as long as the character string consisting of a specific number of digits. A character string editing means 23 performs a process for 'variable = variable + specific character string' repeatedly as many times as calculated by the additional digit number calculating means 22. A data transmitting and receiving means 24 sends the variable which has been edited by the character string editing means 23 to a data processor (server) 3 and receives its processing result. Then the result of the data transmitting and receiving process and the processing result of the server 3 are displayed on an output device 5.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、情報処理装置に関
し、特にクライアント・サーバシステムにおけるデータ
変換方式に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an information processing apparatus, and more particularly to a data conversion method in a client / server system.

【0002】[0002]

【従来の技術】クランアント端末がサーバ装置に接続さ
れるクライアントサーバシステムにおいては、クライア
ント端末側で業務処理等のアプリケーション(AP)の
開発を行い、該アプリケーション実行結果データをサー
バ装置(ファイルサーバ)へ転送し、サーバ装置の記憶
装置に該データの登録処理が行われ、さらにサーバ装置
での該データの処理結果がクライアント側に転送され、
クライアント端末での表示出力等が行われている。
2. Description of the Related Art In a client server system in which a client terminal is connected to a server device, an application (AP) for business processing and the like is developed on the client terminal side, and the application execution result data is transmitted to the server device (file server). And the data is registered in the storage device of the server device, and the processing result of the data in the server device is transferred to the client side.
Display output and the like at the client terminal are performed.

【0003】この場合、クライアントから送信したデー
タが、サーバで扱えないようなデータ形式であった場
合、このデータの処理を行うサーバではエラーが発生す
ることになり、サーバでのエラー処理が行われ、クライ
アント側に異常の旨が通知される。
In this case, if the data transmitted from the client is in a data format that cannot be handled by the server, an error occurs in the server that processes the data, and the server performs error processing. Then, the client is notified of the abnormality.

【0004】[0004]

【発明が解決しようとする課題】上記したように、従来
のクライアント・サーバシステムにおいて、アプリケー
ションプログラムの開発を行う場合、以下のような問題
点があった。
As described above, when developing an application program in a conventional client-server system, there are the following problems.

【0005】第1の問題点は、クライアントから送信し
たデータが、サーバで扱えないようなデータ形式であっ
た場合、サーバ内部で発生するエラーについて、クライ
アント側で操作を行うユーザへの認識に手間がかかる、
ということである。
A first problem is that when data transmitted from a client is in a data format that cannot be handled by the server, it is troublesome for a user operating on the client side to recognize an error occurring inside the server. Takes
That's what it means.

【0006】その理由は、クライアント・サーバ間のデ
ータのやりとり、及びサーバでのエラー処理等の処理が
介在するためである。また、無効となったデータの再入
力等の作業も加わり、操作性としても良好なものとは言
えない。
The reason is that data exchange between the client and the server and processing such as error processing in the server are involved. In addition, work such as re-input of invalid data is added, and the operability is not good.

【0007】これらの問題を回避する為には、クライア
ントからの送信データはサーバで処理を行える属性であ
る事が必須となる。また、インタフェースを構成する項
目が多数あり、その全てを一括して変換出来るものでは
無いため、各項目ごとに桁数、およびセットする文字列
をコーディングする必要が発生する。このため、サーバ
送信データ作成処理のステップ数が多大になってしま
う。
In order to avoid these problems, it is essential that the data transmitted from the client has an attribute that can be processed by the server. In addition, since there are a large number of items constituting the interface, and not all of them can be converted at once, it is necessary to code the number of digits and the character string to be set for each item. For this reason, the number of steps in the server transmission data creation processing becomes large.

【0008】第2の問題点は、画面設計時に項目全体を
ある文字列で表示したい場合(例えば“******”で枠を
書く)など、レイアウトが変更になる度に設計画面の項
目に内容変更を行うという方式では、時間がかかるとい
うことである。
A second problem is that, when the entire item is to be displayed as a certain character string at the time of designing the screen (for example, writing a frame with “******”), the design screen is changed every time the layout is changed. The method of changing the contents of an item takes time.

【0009】したがって、本発明は、上記問題点に鑑み
てなされたものであって、その目的は、短時間で正確な
データの作成、および画面設計を行うことを可能とする
データ変換方式を提供することにある。
SUMMARY OF THE INVENTION Accordingly, the present invention has been made in view of the above problems, and has as its object to provide a data conversion method which enables accurate data creation and screen design in a short time. Is to do.

【0010】[0010]

【課題を解決するための手段】前記目的を達成するた
め、本発明のデータ変換方式は、データ処理装置が、入
力手段から入力された、変数、指定文字列、及び指定桁
数からなる入力内容を引数として受け取り、前記引数に
含まれる前記変数に対して文字列前後のヌル又はスペー
スを削除するトリム手段と、前記トリム手段によるトリ
ム処理後の変数を、前記指定桁数の文字列長にするため
に追加すべき前記指定文字列の数を算出する追加桁数算
出手段と、前記変数に対して前記追加桁数算出手段で算
出された分、前記追加文字列の追加を行う文字列編集手
段と、を備える。変数、指定文字列、指定桁数、及び1
バイト/2バイト属性情報からなる入力内容を引数とし
て受け取り、前記属性情報に基づき前記変数を指定され
た属性に変換する1バイト・2バイト変換手段を備えた
構成としてもよい。そして、本発明は、前記文字列編集
手段で編集した結果の変数を、サーバ側へ送信し、その
処理結果を受信するデータ送受信手段を備える。
In order to achieve the above object, a data conversion method according to the present invention is characterized in that a data processing device comprises: an input unit comprising a variable, a specified character string, and a specified number of digits input from an input means; As an argument, and trimming the variable included in the argument to remove nulls or spaces before and after a character string, and set the variable after trimming by the trimming means to a character string length of the specified number of digits. Additional digit number calculating means for calculating the number of the designated character strings to be added, and character string editing means for adding the additional character string to the variable calculated by the additional digit number calculating means And. Variable, specified character string, specified number of digits, and 1
A configuration may be provided that includes a 1-byte / 2-byte conversion unit that receives input content composed of byte / 2-byte attribute information as an argument, and converts the variable into a specified attribute based on the attribute information. Further, the present invention includes a data transmitting / receiving unit that transmits a variable as a result of editing by the character string editing unit to the server side and receives a processing result thereof.

【0011】[0011]

【発明の実施の形態】本発明の実施の形態について説明
する。本発明は、クライアント・サーバシステムにおい
て、クライアントデータをサーバに送信する際、そのデ
ータ形式の違いにより発生する不具合(1バイト/2バ
イト混在データの扱い等)を回避する手段を備えたもの
であり、変数、指定文字列、指定桁数を引数として受け
渡す事により、指定された変数に特定文字列を付加し、
指定された桁数の文字列に、編集して出力できるように
したものである。
Embodiments of the present invention will be described. The present invention provides means for avoiding a problem (such as handling 1-byte / 2-byte mixed data) caused by a difference in data format when transmitting client data to a server in a client-server system. , A variable, a specified character string, and a specified number of digits are passed as arguments to add a specific character string to the specified variable,
It can be edited and output to a character string with the specified number of digits.

【0012】本発明の実施の形態について以下に説明す
る。本発明のデータ変換方式は、その好ましい実施の形
態において、図1を参照すると、クライアント側のデー
タ処理装置(2)は、入力手段(1)から入力された、
文字列からなる変数、指定文字列、及び指定桁数からな
る入力内容を引数として受け取り、前記引数に含まれる
前記変数に対して文字列前後のヌル又はスペースを削除
するトリム手段(21)と、前記トリム手段によるトリ
ム処理後の変数を、前記指定桁数の文字列長にするため
に追加すべき前記指定文字列の数を算出する追加桁数算
出手段(22)と、前記変数に対して前記追加桁数算出
手段で算出された分、前記追加文字列の追加を行う文字
列編集手段(23)と、前記文字列編集手段で編集した
結果の変数を、サーバ(3)側へ送信し、その処理結果
を受信するデータ送受信手段(24)を備える。
An embodiment of the present invention will be described below. In a preferred embodiment of the data conversion method of the present invention, referring to FIG. 1, a data processing device (2) on the client side receives an input from an input means (1).
Trimming means (21) for receiving, as arguments, a variable consisting of a character string, a specified character string, and input contents consisting of a specified number of digits, and removing nulls or spaces before and after the character string for the variable included in the argument; An additional digit number calculating means (22) for calculating the number of the specified character strings to be added to make the variable after the trimming processing by the trimming means a character string length of the specified number of digits; A character string editing unit (23) for adding the additional character string by the amount calculated by the additional digit number calculation unit, and a variable edited by the character string editing unit are transmitted to the server (3). And a data transmitting / receiving means (24) for receiving the processing result.

【0013】また、入力内容に、文字列からなる変数、
指定文字列、指定桁数、及び1バイト/2バイト属性情
報を備え、前記属性情報に基づき前記変数を指定された
属性に変換する1バイト・2バイト変換手段(図4の2
5)を備えた構成としてもよい。
The input contents include a variable consisting of a character string,
A 1-byte / 2-byte conversion means (2 in FIG. 4) that includes a designated character string, a designated number of digits, and 1-byte / 2-byte attribute information, and converts the variable into a designated attribute based on the attribute information.
5) may be provided.

【0014】本発明の実施の形態は、クライアントのデ
ータをサーバに送信する際、そのデータ形式の違いによ
り発生する不具合(1バイト/2バイト混在データの扱
い等)を回避する手段を備えたものであり、変数、指定
文字列、指定桁数を引数として受け渡す事により、指定
された変数に特定文字列を付加し、指定された桁数の文
字列に、編集して出力できるようにしたものである。
An embodiment of the present invention includes means for avoiding a problem (such as handling of 1-byte / 2-byte mixed data) caused by a difference in data format when transmitting client data to a server. By passing a variable, a specified character string, and a specified number of digits as arguments, a specific character string is added to the specified variable so that it can be edited and output to a character string with the specified number of digits. Things.

【0015】より詳細には、クラインアント側のデータ
処理装置(2)で処理の対象となる変数が入力手段から
入力された際、入力内容が、例えば「“こんにちは□□
□”,“☆”,8)」(□:スペース)であった場合の
処理は次の通りとなる。変数は、“こんにちは□□
□”、指定文字列は“☆”、指定桁数は“8”である。
[0015] More specifically, when the variable to be processed by the data processing apparatus Klein Ant side (2) is inputted from the input means, the input contents, for example, "" Hello □□
□ ”,“ ☆ ”, 8)” (□: space), the processing is as follows. Variable, "Hello □□
□ ”, the designated character string is“ ☆ ”, and the designated number of digits is“ 8 ”.

【0016】データ処理装置(2)のトリム手段(2
1)は、受け渡された変数の前後のnull(ヌル)及
びスペースを削除する。変数の内容、すなわち“こんに
ちは□□□”を、スペース□を削除して、“こんにち
は”に変換する。
The trim means (2) of the data processing device (2)
1) deletes null (null) and spaces before and after the passed variable. The contents of the variable, that is, the "Hello □□□", delete the space □, to convert to "Hello".

【0017】次に、追加桁数算出手段(22)で、指定
桁数(=8桁)に編集するためには、文字列追加処理を
何回行ったら良いかの算出を行う。算出方法は、(指定
桁数)−(変数の文字列長)である。上に示す例の場
合、「8(指定桁数)−5(変数の文字列長)=3」と
なる。
Next, in order to edit to the designated number of digits (= 8 digits), the additional digit number calculating means (22) calculates how many times the character string addition process should be performed. The calculation method is (specified number of digits)-(character string length of variable). In the case of the example shown above, “8 (specified number of digits) −5 (character string length of variable) = 3”.

【0018】文字列編集手段(23)で、「(スペース
削除後の)変数+指定文字列(“☆”)」の処理を特定
回数繰り返す処理を行う。ここで特定回数とは、追加桁
数算出手段(22)で算出された回数(=3)である。
この結果、編集された文字列は、“こんにちは☆☆☆”
となる。編集された文字列がデータ転送手段(24)か
らサーバ側のデータ処理装置(3)へ転送され、サーバ
のデータ処理装置(3)での処理結果を受け取る。
The character string editing means (23) repeats the processing of "(variable after deletion) + specified character string (" * ")" a specified number of times. Here, the specific number is the number (= 3) calculated by the additional digit number calculating means (22).
As a result, the edited string, "Hello ☆☆☆"
Becomes The edited character string is transferred from the data transfer means (24) to the server-side data processing device (3), and receives the processing result of the server data processing device (3).

【0019】このようにして、変数のデータ変換処理を
関数化する事により、データ変換処理のステップ数の削
減およびメンテナンスの効率化を可能にする。
In this manner, by making the data conversion processing of variables into a function, the number of steps of the data conversion processing can be reduced and the efficiency of maintenance can be increased.

【0020】[0020]

【実施例】上記した本発明の実施の形態についてさらに
詳細に説明すべく、本発明の実施例について図面を参照
して以下に説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention;

【0021】図1は、本発明の第一の実施例の構成を示
す図である。図1を参照すると、本実施例は、キーボー
ド等の入力装置1と、プログラム制御により動作するデ
ータ処理装置(クライアント)2と、データ処理装置
(サーバ)3と、サーバ3において情報を記憶する記憶
装置4と、ディスプレイ装置や印刷装置等の出力装置5
と、から構成されている。
FIG. 1 is a diagram showing the configuration of the first embodiment of the present invention. Referring to FIG. 1, in the present embodiment, an input device 1 such as a keyboard, a data processing device (client) 2 operated by program control, a data processing device (server) 3, and a storage for storing information in the server 3 The device 4 and an output device 5 such as a display device or a printing device
And is composed of

【0022】入力装置1から入力される内容は、キーボ
ードからの入力と、プログラム内で値をセットする場合
とがある。
The contents inputted from the input device 1 may be inputted from a keyboard or set in a program.

【0023】この入力内容を引数としてセットし、デー
タ処理装置(クライアント)2に送る。この引数には、
変数、指定文字列、指定桁数をセットする。変数の内容
には、前後にnull及びスペースが含まれる場合も考
慮する。また、変数および指定文字列は、全て2バイト
文字とする。
This input content is set as an argument and sent to the data processing device (client) 2. This argument contains
Set a variable, a specified character string, and a specified number of digits. Consider the case where the contents of the variables include null and spaces before and after. All variables and designated character strings are 2-byte characters.

【0024】データ処理装置2は、トリム手段21と、
追加桁数算出手段22と、文字列編集手段23と、デー
タ送受信手段24とを備えている。
The data processing device 2 comprises: a trimming means 21;
An additional digit number calculation unit 22, a character string editing unit 23, and a data transmission / reception unit 24 are provided.

【0025】これらの手段はそれぞれ概略つぎのように
動作する。
Each of these means operates as follows.

【0026】トリム手段21は、引数に含まれる変数の
内容にトリム処理、すなわち文字列前後のNull又はスペ
ースを削除する処理を行う。
The trimming means 21 performs a trimming process on the contents of the variables included in the argument, that is, a process of deleting nulls or spaces before and after the character string.

【0027】追加桁数算出手段22は、トリム処理後の
変数を、指定桁数の文字列長にする為には、指定文字列
をいくつ追加したら良いかの算出を行う。変数の文字列
長が指定桁数を越えていた場合は「0」とする。
The additional digit number calculating means 22 calculates how many designated character strings should be added in order to set the variable after trimming to the character string length of the designated digit number. If the character string length of the variable exceeds the specified number of digits, it is set to “0”.

【0028】文字列編集手段23は、「変数 = 変数
+ 指定文字列」の処理を追加桁数算出手段22で算
出された回数分、繰り返し実行する。算出回数が「0」
の場合には、トリム処理後の文字列そのままとする。
The character string editing means 23 repeatedly executes the processing of “variable = variable + specified character string” the number of times calculated by the additional digit number calculating means 22. Calculation count is "0"
In the case of, the character string after trimming is used as it is.

【0029】データ送受信手段24は、文字列編集手段
23で編集した結果の変数をデータ処理装置(サーバ)
3へ送信し、その処理結果を受信する。データ送受信処
理の結果、及びサーバ3での処理結果を出力装置5に表
示する。
The data transmitting / receiving means 24 converts the variable edited by the character string editing means 23 into a data processing device (server).
3 and receives the processing result. The result of the data transmission / reception processing and the processing result in the server 3 are displayed on the output device 5.

【0030】データ処理装置3は、クライアントから受
信したデータの編集、記憶装置4への登録処理等を行
い、送受信結果やサーバ内での処理結果等をクライアン
トに送信する。
The data processing device 3 edits the data received from the client, registers the data in the storage device 4, and transmits the transmission / reception result and the processing result in the server to the client.

【0031】図2は、本発明の一実施例の処理フローを
説明するための流れ図である。次に、図1及び図2を参
照して本実施例の全体の動作について詳細に説明する。
FIG. 2 is a flowchart for explaining the processing flow of one embodiment of the present invention. Next, the overall operation of this embodiment will be described in detail with reference to FIGS.

【0032】まず、入力装置1から与えられた入力文字
列は、トリム手段21に供給される。トリム手段21
は、この入力文字列(引数)の中の変数について、前後
にあるNullまたはスペースを取り除く処理を行う(図2
のステップA1)。
First, the input character string given from the input device 1 is supplied to the trimming means 21. Trim means 21
Performs a process of removing nulls and spaces before and after the variables in the input character string (argument) (FIG. 2).
Step A1).

【0033】次に、この変数を入力文字列(引数)の中
の指定文字数にするためには、いくつの文字列を追加し
たら良いかの算出処理を行う(ステップA2)。この結
果、供給された変数の文字列長が既に指定文字数と同
じ、またはそれ以上であった場合、文字列編集処理は行
わず、供給された内容をそのままサーバへの送信データ
として扱う(ステップA3)。
Next, in order to make this variable the designated number of characters in the input character string (argument), a calculation process is performed to determine how many character strings should be added (step A2). As a result, if the character string length of the supplied variable is already equal to or greater than the specified number of characters, the character string editing process is not performed, and the supplied content is handled as it is as transmission data to the server (step A3). ).

【0034】供給された文字列長が指定文字数に満たな
かった場合、必要な回数だけ文字列編集処理を繰り返し
行う。文字列の編集方法は、「変数=変数+指定文字
列」とし、供給された変数の後ろに指定された文字列を
追加してゆく(ステップA4およびA5、A6)。
If the supplied character string length is less than the specified number of characters, the character string editing process is repeated as many times as necessary. The method of editing the character string is “variable = variable + specified character string”, and the specified character string is added after the supplied variable (steps A4, A5, and A6).

【0035】変数が指定桁数の文字列に編集されたら、
その文字列をサーバ3へ送信する。(ステップA7)。
When the variable is edited into a character string having the specified number of digits,
The character string is transmitted to the server 3. (Step A7).

【0036】また、サーバ3側では、受信した変数をデ
ータ編集手段31で記憶装置4に格納する処理を実行す
る。
The server 3 executes a process of storing the received variable in the storage device 4 by the data editing means 31.

【0037】最後に、サーバへの送受信処理の結果、お
よびサーバ内での処理結果を受信し、ディスプレイまた
は印刷装置に出力を行う(ステップA8)。
Finally, the result of the transmission / reception processing to / from the server and the processing result in the server are received and output to a display or a printing device (step A8).

【0038】次に、具体例を用いて本実施例の動作を説
明する。
Next, the operation of this embodiment will be described using a specific example.

【0039】図3(a)の例1に示すように、例えば、
入力された引数が、(“こんにちは□□”,“☆”,8)
だった場合、トリム手段21で、変数“こんにちは□
□”の後ろに付けられた“□(スペース)”が除去さ
れ、“こんにちは”に変換される(図2のステップA
1)。
As shown in Example 1 of FIG. 3A, for example,
Is the input argument is, ( "Hello □□", "☆", 8)
If it was, in the trim means 21, the variable "Hello □
□ "attached behind the" □ (space) "is removed," is converted into Hi "(Step of Fig. 2 A
1).

【0040】次に追加桁数算出手段22で、“こんにち
は”を8桁にする為に、必要な桁数の算出(8−5=
3)を行う(ステップA2)。
[0040] Next, an additional digit number calculating means 22, "Hello" to in order to 8 digits, in calculating the required number of digits (8-5 =
Perform 3) (step A2).

【0041】指定回数が0より大きいので文字列編集処
理を行う。繰り返し回数は3回となる(ステップA
5)。
Since the designated number is greater than 0, a character string editing process is performed. The number of repetitions is three (step A
5).

【0042】この結果、“こんにちは”の後ろに、
“☆”が3つ追加され、“こんにちは☆☆☆”がサーバ
へ送信される。(ステップA7)。
[0042] As a result, the back of the "Hello",
"☆" is added to the three, "Hello ☆☆☆" is transmitted to the server. (Step A7).

【0043】また、図3(b)の例2に示すように、変
数の文字列長が指定桁数より小さかった場合(“こんに
ちは□□”,“☆”,3)は、追加桁数算出処理22の結
果が(3−5=−2)となる為、文字列編集処理は行わ
ず、トリム処理後の変数をそのままサーバへ送信する。
In addition, as shown in example 2 of FIG. 3 (b), when the character string length of the variable is smaller than the specified number of digits ( "Hello □□", "☆", 3), an additional number of digits calculated Since the result of the process 22 is (3-5 = -2), the character string editing process is not performed, and the variable after the trimming process is transmitted to the server as it is.

【0044】次に、本発明の他の実施例について説明す
る。図4は、本発明の第二の実施例の構成を示す図であ
る。
Next, another embodiment of the present invention will be described. FIG. 4 is a diagram showing the configuration of the second embodiment of the present invention.

【0045】図4を参照すると、本実施例は、データ処
理装置6が、図1に示した前記第一の実施例におけるデ
ータ処理装置2の構成に加え、1バイト/2バイト変換処
理25を備えたものである。
Referring to FIG. 4, in this embodiment, the data processing device 6 includes a 1-byte / 2-byte conversion process 25 in addition to the configuration of the data processing device 2 in the first embodiment shown in FIG. It is provided.

【0046】1バイト/2バイト変換処理25は、入力
文字列(引数)の項目に、1バイト/2バイトを表す項
目を追加することで、文字列の編集に加え、属性(1バ
イト/2バイト)の変更も行えるようにしたものであ
る。但し、1バイト・2バイトの対応表を内部に備えて
いる。
The 1-byte / 2-byte conversion process 25 is a process of adding an item representing 1-byte / 2-byte to the item of the input character string (argument), thereby editing the character string and adding the attribute (1-byte / 2). Byte) can be changed. However, a 1-byte / 2-byte correspondence table is provided internally.

【0047】処理内容は、まず変数の属性を対応表を使
って変更し、続いて指示文字列の属性変更も同様に行
う。この際、対応表に存在しない文字列(英数字もしく
はカナ以外の2バイト文字)に1バイト変換を行おうと
した場合はエラーとする。
As for the processing contents, first, the attribute of the variable is changed using the correspondence table, and then the attribute of the designated character string is similarly changed. At this time, if an attempt is made to perform one-byte conversion on a character string (a two-byte character other than alphanumeric characters or kana) that does not exist in the correspondence table, an error is generated.

【0048】図5は、本発明の第二の実施例の処理フロ
ーを説明するための流れ図である。図4及び図5を参照
して、本実施例の動作について説明する。
FIG. 5 is a flowchart for explaining the processing flow of the second embodiment of the present invention. The operation of this embodiment will be described with reference to FIGS.

【0049】図5のステップA1、およびステップA3
−A8で示される本実施例における動作は、図1に示さ
れた実施例の各手順の動作と同一のため、説明は省略す
る。図1に示した前記第一の実施例では、変数、指定文
字列の属性を共に2バイトに限定していた。本実施例で
は、引数に、属性を持たせることにより、変数、および
指定文字列を指定された属性に変換する(ステップA
9)。
Step A1 and step A3 in FIG.
The operation of this embodiment indicated by -A8 is the same as the operation of each procedure of the embodiment shown in FIG. In the first embodiment shown in FIG. 1, the attributes of the variable and the designated character string are both limited to 2 bytes. In this embodiment, a variable and a specified character string are converted into a specified attribute by giving an attribute to the argument (step A).
9).

【0050】追加桁数の算出(ステップA2)は、属性
変換後に、その属性として何文字であるかという前提で
算出を行う。
The calculation of the number of additional digits (step A2) is performed after the attribute conversion, on the premise of the number of characters as the attribute.

【0051】次に、具体例について説明する。Next, a specific example will be described.

【0052】図6(a)の例1に示すように、“こんに
ちは!!”という変数は、指定された属性(2バイト)に
変換され(ステップA9)、“こんにちは!!”とな
る。同時に指定文字列“#”も2バイトに変換され
“#”(全角)となる。以降は前記第一の実施例と同様
に、指定文字列の追加処理が行われ、“こんにちは!!
#”がサーバへの送信データとなる(ステップA5、A
7)。
[0052] As shown in example 1 of FIG. 6 (a), "Hello!" Variable that is converted specified in the attribute (2 bytes) (step A9), the "Hello!". At the same time, the designated character string "#" is also converted to 2 bytes and becomes "#" (full-width). Thereafter as in the first embodiment, additional processing of the string is carried out, "Hello!
# "Becomes transmission data to the server (steps A5, A
7).

【0053】この例で、仮に、属性に1バイトが指定さ
れた場合は、“こんにちは”の文字列は1バイト文字列
に変換できないため、結果にエラーが出力される。
[0053] In this example, if, in the case of 1 byte is specified in the attribute, the string "Hello" because it can not be converted to single-byte character string, an error is output to the result.

【0054】また、図6(b)の例2の場合、“ABC
□□”の文字列は、1バイト変換され“ABC”となり、
指定文字列の“□(2バイトスペース)”も“△(1バ
イトスペース)”に変換される(ステップA9)結果、
サーバへの送信文字列は、“ABC△△△△△”となる
(ステップA5、A7)。
In the case of Example 2 in FIG. 6B, "ABC
The character string of “□□” is converted to 1 byte and becomes “ABC”.
The specified character string “□ (2 byte space)” is also converted to “$ (1 byte space)” (step A9).
The character string transmitted to the server is "ABC @" (steps A5 and A7).

【0055】以上のように、1バイト2バイト対応表お
よび引数に属性を持たせることにより、文字列の編集お
よび属性変更を可能とする。
As described above, by giving attributes to the 1-byte 2-byte correspondence table and the arguments, it is possible to edit the character strings and change the attributes.

【0056】[0056]

【発明の効果】以上説明したように、本発明によれば、
下記記載の効果を奏する。
As described above, according to the present invention,
The following effects are obtained.

【0057】本発明の第一の効果は、クライアントAP
からサーバAPへのデータ送信処理において、送受信エ
ラーを引き起こすような不正なデータを未然に防ぐこと
ができる、ということである。
The first effect of the present invention is that the client AP
In the data transmission process from the server to the server AP, it is possible to prevent illegal data that may cause a transmission / reception error.

【0058】その理由は、本発明においては、データ未
入力時にセットする文字や、データ構造体の変更に対
し、引数の修正だけで済むためである。
The reason for this is that, in the present invention, for the character set when no data is input or the data structure is changed, only the argument needs to be corrected.

【0059】本発明の第二の効果は、このデータ変換処
理を関数化することにより、コーディングステップ数の
削減し、メンテナンスを容易化する、ということであ
る。
A second effect of the present invention is that the number of coding steps is reduced and maintenance is facilitated by making this data conversion process a function.

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

【図1】本発明の第一の実施例の構成を示すブロック図
である。
FIG. 1 is a block diagram showing a configuration of a first embodiment of the present invention.

【図2】本発明の第一の実施例の動作を説明するための
流れ図である。
FIG. 2 is a flowchart for explaining the operation of the first embodiment of the present invention.

【図3】本発明の第一の実施例の動作の一例を具体的に
説明するための図である。
FIG. 3 is a diagram for specifically explaining an example of the operation of the first embodiment of the present invention.

【図4】本発明の第二の実施例の構成を示すブロック図
である。
FIG. 4 is a block diagram showing a configuration of a second exemplary embodiment of the present invention.

【図5】本発明の第二の実施例の動作を説明するための
流れ図である。
FIG. 5 is a flowchart for explaining the operation of the second embodiment of the present invention.

【図6】本発明の第二の実施例の動作の一例を具体的に
説明するための図である。
FIG. 6 is a diagram for specifically explaining an example of the operation of the second embodiment of the present invention.

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

1 入力装置 2 データ処理装置 3 データ処理装置 4 記憶装置 5 出力装置 21 トリム手段 22 追加桁数算出手段 23 文字列編集手段 24 データ送受信手段 25 1バイト/2バイト変換手段 31 データ編集手段 REFERENCE SIGNS LIST 1 input device 2 data processing device 3 data processing device 4 storage device 5 output device 21 trimming means 22 additional digit number calculation means 23 character string editing means 24 data transmission / reception means 25 1 byte / 2 byte conversion means 31 data editing means

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】文字列からなる変数、指定文字列、及び指
定桁数からなる入力内容を、引数としてデータ変換手段
に渡し、 前記データ変換手段が、前記引数に含まれる前記変数に
対して文字列前後のヌル又はスペースを削除するトリム
処理を施したのち、該変トリム処理された変数に対し
て、前記指定桁数の文字列長となるまで前記指定文字列
を追加する、ことを特徴とするデータ変換方式。
1. A variable consisting of a character string, a designated character string, and an input content consisting of a designated number of digits are passed as arguments to a data conversion unit, and the data conversion unit sends a character string to the variable included in the argument. After performing a trim process for deleting nulls or spaces before and after the column, the specified character string is added to the variable-trimmed variable until the character string length reaches the specified number of digits. Data conversion method to use.
【請求項2】データ処理装置が、入力手段から入力され
た、文字列からなる変数、指定文字列、及び指定桁数か
らなる入力内容を引数として受け取り、前記引数に含ま
れる前記変数に対して文字列前後のヌル又はスペースを
削除するトリム手段と、 前記トリム手段によるトリム処理後の変数を、前記指定
桁数の文字列長にするために追加すべき前記指定文字列
の数を算出する追加桁数算出手段と、 前記変数に対して前記追加桁数算出手段で算出された
分、前記追加文字列の追加を行う文字列編集手段と、 を備えたことを特徴とするデータ変換方式。
2. A data processing apparatus receives, as arguments, a variable consisting of a character string, a designated character string, and an input content consisting of a designated number of digits, which are input from an input means. Trimming means for removing nulls or spaces before and after a character string; and adding a variable after trimming by the trimming means to calculate the number of the specified character strings to be added to make the character string length of the specified number of digits A data conversion method comprising: digit number calculation means; and character string editing means for adding the additional character string to the variable calculated by the additional digit number calculation means.
【請求項3】データ処理装置が、入力手段から入力され
た、文字列からなる変数、指定文字列、指定桁数、及び
1バイト/2バイト属性情報からなる入力内容を引数と
して受け取り、前記引数に含まれる前記変数に対して文
字列前後のヌル又はスペースを削除するトリム手段と、 前記属性情報に基づき前記変数を指定された属性に変換
する1バイト・2バイト変換手段と、 前記トリム手段及び前記1バイト・2バイト変換手段で
処理された変数を、前記指定桁数の文字列長にするため
に追加すべき指定文字列の数を算出する追加桁数算出手
段と、 前記変数に対して前記追加桁数算出手段で算出された
分、前記追加文字列の追加を行う文字列編集手段と、 を備えたことを特徴とするデータ変換方式。
3. A data processing apparatus receives, as arguments, a variable consisting of a character string, a designated character string, a designated number of digits, and input contents consisting of 1-byte / 2-byte attribute information, which are input from an input means. Trimming means for removing nulls or spaces before and after a character string with respect to the variable included in the variable, 1-byte / 2-byte conversion means for converting the variable into a specified attribute based on the attribute information, An additional digit number calculating means for calculating the number of designated character strings to be added in order to make the variable processed by the one-byte / two-byte converting means a character string length of the designated digit number; A character string editing means for adding the additional character string by an amount calculated by the additional digit number calculation means.
【請求項4】クライアント・サーバシステムのデータ変
換方式において、 クライアントが、入力手段から入力された、文字列から
なる変数、指定文字列、及び指定桁数からなる入力内容
を引数として受け取り、前記引数に含まれる前記変数に
対して文字列前後のヌル又はスペースを削除するトリム
手段と、 前記トリム手段によるトリム処理後の変数を、前記指定
桁数の文字列長にするために追加すべき前記指定文字列
の数を算出する追加桁数算出手段と、 前記変数に対して前記追加桁数算出手段で算出された
分、前記追加文字列の追加を行う文字列編集手段と、 前記文字列編集手段で編集した結果の変数を、サーバ側
へ送信し、その処理結果を受信するデータ送受信手段
と、 を備えたことを特徴とするデータ変換方式。
4. A data conversion method for a client-server system, wherein a client receives, as arguments, a variable consisting of a character string, a specified character string, and an input content consisting of a specified number of digits, which are input from an input means. Trimming means for removing nulls or spaces before and after a character string from the variable included in the variable, and the designation to be added to make the variable after trimming by the trimming means a character string length of the specified number of digits. Additional digit number calculating means for calculating the number of character strings; character string editing means for adding the additional character string to the variable calculated by the additional digit number calculating means; and the character string editing means A data transmission / reception means for transmitting a variable of a result edited in step 1 to the server side and receiving a processing result thereof.
【請求項5】クライアント・サーバシステムのデータ変
換方式において、 クライアントが、入力手段から入力された、文字列から
なる変数、指定文字列、指定桁数、及び1バイト/2バ
イト属性情報からなる入力内容を引数として受け取り、
前記引数に含まれる前記変数に対して文字列前後のヌル
又はスペースを削除するトリム手段と、 前記属性情報に基づき前記変数を指定された属性に変換
する1バイト・2バイト変換手段と、 前記トリム手段及び前記1バイト・2バイト変換手段で
処理された変数を、前記指定桁数の文字列長にするため
に追加すべき指定文字列の数を算出する追加桁数算出手
段と、 前記変数に対して前記追加桁数算出手段で算出された
分、前記追加文字列の追加を行う文字列編集手段と、 前記文字列編集手段で編集した結果の変数を、サーバ側
へ送信し、その処理結果を受信するデータ送受信手段
と、 を備えたことを特徴とするデータ変換方式。
5. A data conversion method for a client-server system, wherein a client inputs a variable consisting of a character string, a designated character string, a designated number of digits, and 1 byte / 2 byte attribute information inputted from an input means. Takes the content as an argument,
Trim means for removing nulls or spaces before and after a character string for the variable included in the argument; 1-byte / 2-byte conversion means for converting the variable into a specified attribute based on the attribute information; Means and an additional digit number calculating means for calculating the number of designated character strings to be added in order to make the variable processed by the 1-byte / 2-byte converting means the character string length of the designated digit number; On the other hand, a character string editing unit that adds the additional character string by the amount calculated by the additional digit number calculation unit, and a variable that is a result of editing by the character string editing unit is transmitted to the server side. A data conversion method, comprising: a data transmission / reception means for receiving the data.
【請求項6】文字コードを1バイトから2バイト、及び
2バイトから1バイトへ変換する際に参照される変換テ
ーブルを備えたことを特徴とする請求項6記載のデータ
変換システム。
6. The data conversion system according to claim 6, further comprising a conversion table referred to when converting the character code from 1 byte to 2 bytes and from 2 bytes to 1 byte.
【請求項7】(a)入力された、文字列からなる変数、
指定文字列、及び指定桁数からなる入力内容を引数とし
て受け取り、前記引数に含まれる前記変数に対して文字
列前後のヌル又はスペースを削除するトリム処理、 (b)前記トリム処理後の変数を、前記指定桁数の文字
列長にするために追加すべき前記指定文字列の数を算出
する追加桁数算出処理、及び、 (c)前記変数に対して前記追加桁数算出処理で算出さ
れた分、前記追加文字列の追加を行う文字列編集処理、 の上記(a)〜(c)の各処理をコンピュータで実行す
るためのプログラムを記録した記録媒体。
7. An input variable comprising a character string,
Trim processing of receiving a specified character string and input contents consisting of a specified number of digits as arguments and removing nulls or spaces before and after the character string from the variables included in the arguments, (b) removing the variables after the trim processing An additional digit number calculation process for calculating the number of the specified character strings to be added to make the character string length of the specified digit number; and (c) an additional digit number calculation process for the variable. And a character string editing process for adding the additional character string. A recording medium that records a program for executing the above-described processes (a) to (c) on a computer.
【請求項8】(a)入力された、文字列からなる変数、
指定文字列、指定桁数、及び1バイト/2バイト属性情
報からなる入力内容を引数として受け取り、前記引数に
含まれる前記変数に対して文字列前後のヌル又はスペー
スを削除するトリム処理、 (b)前記属性情報に基づき前記変数を指定された属性
に変換する1バイト・2バイト変換処理、 (c)前記トリム処理及び前記1バイト・2バイト変換
処理がなされた変数を、前記指定桁数の文字列長にする
ために追加すべき指定文字列の数を算出する追加桁数算
出処理、及び、 (d)前記変数に対して前記追加桁数算出処理で算出さ
れた分、前記追加文字列の追加を行う文字列編集処理、 の上記(a)〜(d)の各処理をコンピュータで実行す
るためのプログラムを記録した記録媒体。
8. (a) An input variable consisting of a character string,
Trim processing of receiving an input content consisting of a specified character string, a specified number of digits, and 1-byte / 2-byte attribute information as an argument, and deleting nulls or spaces before and after the character string for the variable included in the argument, (b) ) A 1-byte / 2-byte conversion process for converting the variable into a specified attribute based on the attribute information; and (c) converting the variable subjected to the trim process and the 1-byte / 2-byte conversion process into the specified number of digits. An additional digit number calculation process for calculating the number of designated character strings to be added to make the character string length; and (d) the additional character string for the variable calculated for the variable in the additional digit number calculation process. A recording medium storing a program for executing, by a computer, each of the processes (a) to (d) described above.
JP36877997A 1997-12-26 1997-12-26 Client/server data conversion system Pending JPH11194922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36877997A JPH11194922A (en) 1997-12-26 1997-12-26 Client/server data conversion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36877997A JPH11194922A (en) 1997-12-26 1997-12-26 Client/server data conversion system

Publications (1)

Publication Number Publication Date
JPH11194922A true JPH11194922A (en) 1999-07-21

Family

ID=18492732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36877997A Pending JPH11194922A (en) 1997-12-26 1997-12-26 Client/server data conversion system

Country Status (1)

Country Link
JP (1) JPH11194922A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8001175B2 (en) 2004-10-22 2011-08-16 International Business Machines Corporation Facilitating server response optimization

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8001175B2 (en) 2004-10-22 2011-08-16 International Business Machines Corporation Facilitating server response optimization

Similar Documents

Publication Publication Date Title
US5640559A (en) System and method of encoding units of data including entity/relationship data, function calls and file data using a common format (CDF) according to formal CDF grammar rules
JPH11194922A (en) Client/server data conversion system
US20030163800A1 (en) System and method for generating graphical codes containing a plurality of data fields
JP2001125916A (en) Information processor
JPH06290021A (en) Method for compressing source program
JP3420785B2 (en) Program construction equipment
JP2790594B2 (en) How to compress and decompress database records
JP3104302B2 (en) Data compression device
JPH11232149A (en) File comparison processing method and device, and medium storing file comparison processing program
JPH09311800A (en) Automatic data converting device
JP2905552B2 (en) Keyboard control method
JP3465592B2 (en) Data format converter
JP2669070B2 (en) Screen definition device
JPH0454635A (en) Screen specification defining method and business processing method
TWM646597U (en) Source code optimizer
JP2710442B2 (en) First and last name kana-kanji conversion method
JP3119596B2 (en) Network monitoring device trap reception method
JPH11143698A (en) Device for generating interactive processing program, and medium recorded with program for generating interactive processing program
JP3138664B2 (en) Input control parts
JPH1063746A (en) Automatic table date generator
JPH06103023A (en) Japanese code conversion processing system
JPH0440554A (en) Character data processor
JPH1021309A (en) Data processing system
JPH03282657A (en) Conversion system for business document form
JPH11296510A (en) Data converting device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000725