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
弥代恵 仲田
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

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] 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]

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.

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]

As described above, when developing an application program in a conventional client-server system, there are the following problems.

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.

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.

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.

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.

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]

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]

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.

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.

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.

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] 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 ”.

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".

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”.

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).

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]

BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention;

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

The contents inputted from the input device 1 may be inputted from a keyboard or set in a program.

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.

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.

Each of these means operates as follows.

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.

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”.

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.

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.

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.

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.

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).

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). ).

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).

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).

The server 3 executes a process of storing the received variable in the storage device 4 by the data editing means 31.

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).

Next, the operation of this embodiment will be described using a specific example.

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] 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).

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] As a result, the back of the "Hello",
"☆" is added to the three, "Hello ☆☆☆" is transmitted to the server. (Step A7).

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.

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.

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.

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.

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.

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.

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).

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.

Next, a specific example will be described.

[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] 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.

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).

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]

As described above, according to the present invention,
The following effects are obtained.

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.

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.

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]

FIG. 1 is a block diagram showing a configuration of a first embodiment of the present invention.

FIG. 2 is a flowchart for explaining the operation of the first embodiment of the present invention.

FIG. 3 is a diagram for specifically explaining an example of the operation of the first embodiment of the present invention.

FIG. 4 is a block diagram showing a configuration of a second exemplary embodiment of the present invention.

FIG. 5 is a flowchart for explaining the operation of the second embodiment of the present invention.

FIG. 6 is a diagram for specifically explaining an example of the operation of the second embodiment of the present invention.

[Explanation of symbols]

 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. 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. 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. 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. 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. 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. 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. 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) 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
US9256584B2 (en) Rich text handling for a web application
US9081786B1 (en) Systems and methods for creating self-extracting files
Girardot et al. Millau: an encoding format for efficient representation and exchange of XML over the Web
Strubbe Manual for SCHOONSCHIP a CDC 6000/7000 program for symbolic evaluation of algebraic expressions
US7797627B2 (en) Method and apparatus for providing a graphical user interface for creating and editing a mapping of a first structural description to a second structural description
US6101509A (en) Method and apparatus for transmitting documents over a network
RU2338245C2 (en) Method and computer-read medium to import and export hierarchically structured data
US5764982A (en) Peer-to-peer communication interface
US5956736A (en) Object-oriented editor for creating world wide web documents
US7441185B2 (en) Method and system for binary serialization of documents
US5745908A (en) Method for converting a word processing file containing markup language tags and conventional computer code
US7043686B1 (en) Data compression apparatus, database system, data communication system, data compression method, storage medium and program transmission apparatus
US5165030A (en) Method and system for dynamic creation of data stream based upon system parameters and operator selections
KR100252720B1 (en) Font processing device and method in network environment
US6658625B1 (en) Apparatus and method for generic data conversion
US8738415B2 (en) Automated workflow assignment to print jobs
US7146565B2 (en) Structured document edit apparatus, structured document edit method, and program product
US5055998A (en) Intermediate spreadsheet structure
US6928462B2 (en) System and method for distributed processing of non-processable elements of a document to be rendered on a client
US7356764B2 (en) System and method for efficient processing of XML documents represented as an event stream
US6202072B1 (en) Method and apparatus for processing standard generalized markup language (SGML) and converting between SGML and plain text using a prototype and document type definition
US7917548B2 (en) Universal parsing agent system and method
EP1051823B1 (en) System for delivering data content over a low bit rate transmission channel
US5968127A (en) Information processing apparatus
US6839877B2 (en) E-mail terminal automatically converting character string of reception e-mail, and e-mail system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000725