A method and device for transplanting modernized software of mainframe
Through the COBOL language-based transplantation assembly system and the JAVAFX_SDK development platform, efficient and accurate software transplantation in different environments is achieved, solving the problems of data loss and poor operational stability in the existing technology, and meeting the transplantation needs in various environments. .
Patent Information
- Application Number
- CN202210234239.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-09
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-03-09
AI Technical Summary
Existing software transplantation methods are difficult to effectively transplant under different types of software and hardware environments, and can easily lead to data loss and poor operational stability.
Using a transplanted assembly system based on COBOL language and the JAVAFX_SDK development platform, through simulation operation detection and manual repair, Java Class files are generated and encapsulated to ensure that the software runs correctly in the new environment.
It improves the success rate and accuracy of software transplantation, avoids system failures caused by data loss and environment mismatch, and meets the transplantation needs of different usage scenarios.
Smart Images

Figure CN114625415B
Abstract
Description
Technical Field
[0001] The invention relates to a method and device for transplanting modernized software of a large-scale computer, belonging to the technical field of computers. Background Art
[0002] With the development of computer network technology, users have higher and higher demands on various computer software systems. In order to improve the software system to meet the needs of users between different computer systems, and at the same time overcome the low efficiency of traditional software system frequent installation operations, and the loss of a large amount of original control data, environment settings and other parameters when the new software is installed, which causes great inconvenience to the work, and to address this problem, software transplantation technology has been developed, such as the "software transplantation method and device" with patent application number "2008101177323", the "transplantation of live broadcast application software to" with patent application number "2016110784160", and the "transplantation of live broadcast application software to" with patent application number "2016110784160". Although the technologies such as "the method and device for Firefox browser" can meet the needs of use to a certain extent, the current software transplantation methods and devices have different degrees of difficulty in software transplantation operations during use. The environmental adaptability of the transplantation equipment is poor, and it is difficult to effectively meet the needs of transplantation operations under various types of software and hardware environments; on the other hand, during the transplantation process, it is easy to lose data such as hardware parameters and environmental variable parameters of software operation, and part of the program code is lost due to compilation errors during transplantation code copying, which leads to poor stability of software operation after transplantation and loss of software data, which makes it impossible to carry out the work smoothly.
[0003] Therefore, in order to solve this problem, it is urgent to develop a method and device for modernizing mainframe software migration to meet the needs of actual use. Summary of the invention
[0004] In order to solve the deficiencies in the prior art, the present invention provides a method and device for modernizing mainframe software migration, which can flexibly adjust the structure and capacity of software migration equipment according to usage needs, and effectively overcome the problems of data loss and system failure caused by mismatch between software and operating environment after software system migration.
[0005] A mainframe modernization software migration method comprises the following steps:
[0006] The first step is to build a test packaging system. First, a software transplantation platform based on a mobile data storage mechanism is set up, and then a transplantation assembly system based on the COBOL language, a JAVAFX_SDK development platform and third-party functions are implanted in the software transplantation platform;
[0007] The second step is program testing. First, a data connection is established between the software transplantation platform and the computer system where the software to be transplanted is currently running. Then, the software to be transplanted is driven to perform simulation operation. During the simulation operation, the transplantation assembly system based on the COBOL language performs simulation operation detection on the software to be transplanted. The original program code files, environment variables, registry information, and operating hardware environment parameters related to the software to be transplanted are identified and counted. Based on the simulation operation results and the collected parameter information, the portability of the transplantation operation of the software to be transplanted is obtained.
[0008] The third step is packaging and transplantation. After completing the second step, the transplantation assembly system based on the COBOL language calls the system third-party function through the CALL command, copies the transplanted software to the software transplantation platform, compiles the copied software code into Java code and obtains the Java Class file, and packages the copied encoded Java code through the Java system framework. In the packaging process, the software startup identification code and end identification code based on Imports are added to the front and back ends of the transplanted software code.
[0009] Step 4: Manual repair. After completing step 3, manually correct the file contents that were not compiled into Java code during the encoding process using the structure referenced by REDEFINES to obtain a complete software porting copy.
[0010] The fifth step is transplantation and operation. After completing the fourth step, transfer the software transplantation platform to the third-party computer system, and copy the complete software transplantation copy to the third-party computer system. Then, detect and set the third-party computer system according to the original program code files, environment variables, registry information, and running hardware environment parameters. After completing the detection and setting, copy the software transplantation copy to the third-party computer system.
[0011] Furthermore, the third-party function is any one or more of functions written in other languages such as lib functions and C language functions.
[0012] Furthermore, in the step S3, when the CALL command calls the system third-party function to assemble the program, the COBOL language code is synchronously generated to generate an abstract syntax tree and a code function library.
[0013] Furthermore, the software transplantation platform includes a load-bearing keel, a guide groove, a mobile data storage device, an interface module, a data comprehensive processing module and an emergency power supply module, wherein the load-bearing keel is a frame structure with a rectangular cross-section, the mobile data storage device, the interface module, the data comprehensive processing module and the emergency power supply module are all embedded in the load-bearing keel and are respectively slidably connected to the inner side surface of the load-bearing keel through the guide groove, the mobile data storage device, the data comprehensive processing module and the emergency power supply module are all electrically connected through the interface module, and the interface module is located on the outer side surface of the load-bearing keel, and establishes a data connection with an external system.
[0014] Furthermore, the mobile data storage device, interface module, data comprehensive processing module and emergency power supply module are all provided with hard protective shells, and are respectively embedded in independent hard protective shells, and the hard protective shells are all plate-like structures with rectangular cross-sections, and are connected to the inner side of the load-bearing keel through a guide slide groove, and the hard protective shell is also provided with a power connection port and a communication connection port, and the power connection port and the communication connection port are respectively electrically connected to the mobile data storage device, data comprehensive processing module and emergency power supply module in the hard protective shell, and the mobile data storage device, data comprehensive processing module and emergency power supply module are also connected to the interface module through the power connection port and the communication connection port, and a number of elastic shock-absorbing blocks and two elastic insulating pressure plates are also provided in the hard protective shell, and the elastic insulating pressure plates are respectively distributed parallel to the axis of the hard protective shell, and symmetrically distributed on both sides of the axis of the hard protective shell, and each elastic insulating pressure plate is respectively connected to the inner surface of the top and bottom of the hard protective shell through elastic shock-absorbing blocks.
[0015] Furthermore, the mobile data storage device is based on any one or both of a mobile hard disk and a U disk; the interface module includes any one of a USB interface, an AGP interface, a PCI-E interface, an HTTP interface, an RPC interface, a Web Service interface, an AUX interface, an SD interface, an HDMI interface, a Type-c interface, and an RG45 interface.
[0016] Furthermore, the data comprehensive processing module includes a data processing circuit, a bus module, a MOS drive circuit module, and a control interface. The data processing circuit, bus module, and control interface are all electrically connected to the MOS drive circuit module, and the MOS drive circuit module is also electrically connected to the interface module. The control interface is embedded in the outer surface of the load-bearing keel and is hinged to the outer surface of the load-bearing keel through a ratchet mechanism, and the control interface forms an angle of 0°-90° with the outer surface of the load-bearing keel.
[0017] Furthermore, the emergency power supply module includes a battery pack, a multi-channel voltage-regulated power supply and a charge and discharge control circuit. The multi-channel voltage-regulated power supply is electrically connected to the battery pack, the mobile data storage device, the interface module, the data integrated processing module and the external power supply circuit through the charge and discharge control circuit.
[0018] On the one hand, the system structure of the present invention is simple, flexible and convenient to use, and has good versatility. The structure and capacity of the software transplantation equipment can be flexibly adjusted according to the needs of use, thereby effectively meeting the needs of transplantation operations in different usage environments and software data volumes; on the other hand, the transplantation operation is a software program copy and transplantation with high efficiency, high transplantation success rate and accuracy, which effectively overcomes the problems of data loss that is prone to occur after the software system is transplanted, and system failures caused by the mismatch between the software and the operating environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments;
[0020] Figure 1 It is a schematic diagram of the system structure of the present invention;
[0021] Figure 2 This is a schematic diagram of the abstract syntax tree structure;
[0022] Figure 3 This is a schematic diagram of a list of commonly used data codes;
[0023] Figure 4 This is a schematic diagram of the basic verb code list;
[0024] Figure 5 This is a schematic diagram of the data layout code list;
[0025] Figure 6 This is a schematic diagram of the conditional statement code list;
[0026] Figure 7 This is a schematic diagram of the loop statement code list;
[0027] Figure 8 This is a schematic diagram of the subroutine code list;
[0028] Fig. 9 This is a schematic diagram of merging and sorting code lists;
[0029] Fig.10 This is a schematic diagram of the sequential file code list;
[0030] Fig.11 This is a schematic diagram of a relative file code list;
[0031] Fig.12 This is a schematic diagram of the index file code list;
[0032] Fig.13This is a diagram of the report code list;
[0033] Fig.14 This is a schematic diagram of the communication code list;
[0034] Fig.15 Schematic diagram of the software transplantation platform structure;
[0035] Fig.16 Schematic diagram of the hard protective shell structure.
[0036] The load-bearing keel 1, the guide slide 2, the mobile data storage device 3, the interface module 4, the data integrated processing module 5, the emergency power supply module 6, the hard protective shell 101, the power connection port 102, the communication connection port 103, the control interface 104, the elastic shock-absorbing block 105, and the elastic insulating pressure plate 106. DETAILED DESCRIPTION
[0037] In order to facilitate the construction of the technical means, creative features, objectives and effects achieved by the present invention, the present invention is further described below in conjunction with specific implementation methods.
[0038] See also Figure 1 , a mainframe modernization software migration method, comprising the following steps:
[0039] The first step is to build a test packaging system. First, a software transplantation platform based on a mobile data storage mechanism is set up, and then a transplantation assembly system based on the COBOL language, a JAVAFX_SDK development platform and third-party functions are implanted in the software transplantation platform;
[0040] The second step is program testing. First, a data connection is established between the software transplantation platform and the computer system where the software to be transplanted is currently running. Then, the software to be transplanted is driven to perform simulation operation. During the simulation operation, the transplantation assembly system based on the COBOL language performs simulation operation detection on the software to be transplanted. The original program code files, environment variables, registry information, and operating hardware environment parameters related to the software to be transplanted are identified and counted. Based on the simulation operation results and the collected parameter information, the portability of the transplantation operation of the software to be transplanted is obtained.
[0041] The third step is packaging and transplantation. After completing the second step, the transplantation assembly system based on the COBOL language calls the system third-party function through the CALL command, copies the transplanted software to the software transplantation platform, compiles the copied software code into Java code and obtains the Java Class file, and packages the copied encoded Java code through the Java system framework. In the packaging process, the software startup identification code and end identification code based on Imports are added to the front and back ends of the transplanted software code.
[0042] Step 4: Manual repair. After completing step 3, manually correct the file contents that were not compiled into Java code during the encoding process using the structure referenced by REDEFINES to obtain a complete software porting copy.
[0043] The fifth step is transplantation and operation. After completing the fourth step, transfer the software transplantation platform to the third-party computer system, and copy the complete software transplantation copy to the third-party computer system. Then, detect and set the third-party computer system according to the original program code files, environment variables, registry information, and running hardware environment parameters. After completing the detection and setting, copy the software transplantation copy to the third-party computer system.
[0044] In this embodiment, the third-party function is any one or more of the functions written in other languages such as lib function and C language function.
[0045] In this embodiment, in the step S3, when the CALL command calls the system third-party function to assemble the program, the COBOL language code is synchronously generated to generate an abstract syntax tree (see Figure 2 ) and code libraries (see Figure 3-Figure 14 ).
[0046] Among them, the COBOL language code function library includes: common data code, basic verb code, data layout code, conditional statement code, loop statement code, subroutine code, merging and sorting code, sequential file code, relative file code, index file code, report code and communication code.
[0047] See also Fig.15 , it is particularly noted that the software transplantation platform includes a bearing keel 1, a guide slot 2, a mobile data storage device 3, an interface module 4, a data comprehensive processing module 5 and an emergency power supply module 6, wherein the bearing keel 1 is a frame structure with a rectangular cross-section, the mobile data storage device 3, the interface module 4, the data comprehensive processing module 5 and the emergency power supply module 6 are all embedded in the bearing keel 1 and are respectively slidably connected to the inner side surface of the bearing keel 1 through the guide slot 2, the mobile data storage device 3, the data comprehensive processing module 5 and the emergency power supply module 6 are all electrically connected through the interface module 4, and the interface module 4 is located at the outer side surface of the bearing keel 1, and establishes a data connection with an external system.
[0048] See also Fig.16, wherein the mobile data storage 3, interface module 4, data integrated processing module 5 and emergency power supply module 6 are all provided with a hard protective shell 101, and are respectively embedded in an independent hard protective shell 101, and the hard protective shell 101 is a plate-shaped structure with a rectangular cross section, and is connected to the inner side of the load-bearing keel 1 through a guide slot 2, and the hard protective shell 101 is also provided with a power connection port 102 and a communication connection port 103, and the power connection port 102 and the communication connection port 103 are respectively connected to the mobile data storage 3, the data integrated processing module 5 and the emergency power supply module 6 in the hard protective shell 101 The emergency power supply modules 6 are all electrically connected, and the mobile data storage device 3, the data integrated processing module 5 and the emergency power supply module 6 are respectively connected to the interface module 4 through the power connection port 102 and the communication connection port 103. A plurality of elastic shock-absorbing blocks 105 and two elastic insulating pressure plates 106 are also arranged in the hard protective shell 101. The elastic insulating pressure plates 106 are respectively distributed parallel to the axis of the hard protective shell 101 and symmetrically distributed on both sides of the axis of the hard protective shell 101, and each elastic insulating pressure plate 106 is respectively connected to the inner surface of the top and bottom of the hard protective shell 101 through the elastic shock-absorbing blocks 105.
[0049] In actual use, the mobile data storage device 3, the interface module 4, the data integrated processing module 5 and the emergency power supply module in the hard protective shell 101 are positioned and insulated by an elastic insulating pressure plate. At the same time, when they are impacted or vibrated by external forces, the elastic deformation capacity of the elastic shock-absorbing block 105 and the elastic insulating pressure plate 106 is used to reduce shock, thereby effectively improving the stability and reliability of the circuit system operation.
[0050] Further optimized, the mobile data storage device 3 is based on any one of a mobile hard disk and a U disk or a common use of both; the interface module 4 includes any one of a USB interface, an AGP interface, a PCI-E interface, an HTTP interface, an RPC interface, a WebService interface, an AUX interface, an SD interface, an HDMI interface, a Type-c interface, and an RG45 interface.
[0051] Among them, the data comprehensive processing module 5 includes a data processing circuit, a bus module, a MOS drive circuit module, and a control interface 104. The data processing circuit, the bus module, and the control interface 104 are all electrically connected to the MOS drive circuit module, and the MOS drive circuit module is also electrically connected to the interface module 4. The control interface 104 is embedded in the outer surface of the load-bearing keel 1 and is hinged to the outer surface of the load-bearing keel 1 through a ratchet mechanism, and the control interface 104 and the outer surface of the load-bearing keel 1 are at an angle of 0°-90°.
[0052] At the same time, the emergency power supply module 6 includes a battery pack, a multi-channel voltage-stabilized power supply and a charge and discharge control circuit. The multi-channel voltage-stabilized power supply is electrically connected to the battery pack, the mobile data storage device 3, the interface module 4, the data integrated processing module 5 and the external power supply circuit through the charge and discharge control circuit.
[0053] On the one hand, the system structure of the present invention is simple, flexible and convenient to use, and has good versatility. The structure and capacity of the software transplantation equipment can be flexibly adjusted according to the needs of use, thereby effectively meeting the needs of transplantation operations in different usage environments and software data volumes; on the other hand, the transplantation operation is a software program copy and transplantation with high efficiency, high transplantation success rate and accuracy, which effectively overcomes the problems of data loss that is prone to occur after the software system is transplanted, and system failures caused by the mismatch between the software and the operating environment.
[0054] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for modernizing mainframe software transplantation, characterized by: The mainframe modernization software transplantation method comprises the following steps: The first step is to build a test packaging system. First, a software transplantation platform based on a mobile data storage mechanism is set up, and then a transplantation assembly system based on the COBOL language, a JAVAFX_SDK development platform and third-party functions are implanted in the software transplantation platform; The second step is program testing. First, a data connection is established between the software transplantation platform and the computer system where the software to be transplanted is currently running. Then, the software to be transplanted is driven to perform simulation operation. During the simulation operation, the transplantation assembly system based on the COBOL language performs simulation operation detection on the software to be transplanted. The original program code files, environment variables, registry information, and operating hardware environment parameters related to the software to be transplanted are identified and counted. Based on the simulation operation results and the collected parameter information, the portability of the transplantation operation of the software to be transplanted is obtained. The third step is packaging and transplantation. After completing the second step, the transplantation assembly system based on the COBOL language calls the system third-party function through the CALL command, copies the transplanted software to the software transplantation platform, compiles the copied software code into Java code and obtains the Java Class file, and packages the copied encoded Java code through the Java system framework. In the packaging process, the software startup identification code and end identification code based on Imports are added to the front and back ends of the transplanted software code. Step 4: Manual repair. After completing step 3, manually correct the file contents that were not compiled into Java code during the encoding process using the structure referenced by REDEFINES to obtain a complete software porting copy. The fifth step is transplantation and operation. After completing the fourth step, transfer the software transplantation platform to the third-party computer system, and copy the complete software transplantation copy to the third-party computer system. Then, detect and set the third-party computer system according to the original program code files, environment variables, registry information, and running hardware environment parameters. After completing the detection and setting, copy the software transplantation copy to the third-party computer system.
2. A method for modernizing mainframe software transplantation according to claim 1, characterized in that: The third-party function is any one or more of the functions written in other languages such as lib function and C language function.
3. A method for modernizing mainframe software transplantation according to claim 1, characterized in that: In the third step, when the CALL command calls the system third-party function to assemble the program, the COBOL language code is synchronously generated to generate an abstract syntax tree and a code function library.
4. A mainframe modernization software transplantation device for implementing the method as claimed in claim 1, characterized in that: The software transplantation platform comprises a bearing keel (1), a guide slot (2), a mobile data storage device (3), an interface module (4), a data comprehensive processing module (5) and an emergency power supply module (6), wherein the bearing keel (1) is a frame structure with a rectangular cross section, the mobile data storage device (3), the interface module (4), the data comprehensive processing module (5) and the emergency power supply module (6) are all embedded in the bearing keel (1) and are respectively slidably connected to the inner side surface of the bearing keel (1) through the guide slot (2), the mobile data storage device (3), the data comprehensive processing module (5) and the emergency power supply module (6) are all electrically connected through the interface module (4), and the interface module (4) is located on the outer side surface of the bearing keel (1) and establishes a data connection with an external system.
5. A mainframe modernization software transplantation device according to claim 4, characterized in that: The mobile data storage device (3), interface module (4), data integrated processing module (5) and emergency power supply module (6) are all provided with a hard protective shell (101) and are respectively embedded in an independent hard protective shell (101). The hard protective shell (101) is a plate-like structure with a rectangular cross section and is connected to the inner side of the load-bearing keel (1) through a guide slot (2). The hard protective shell (101) is also provided with a power connection port (102) and a communication connection port (103). The power connection port (102) and the communication connection port (103) are respectively connected to the mobile data storage device (3), the data integrated processing module (5) and the emergency power supply module (6) in the hard protective shell (101). The power supply module (6) is electrically connected, and the mobile data storage device (3), the data integrated processing module (5) and the emergency power supply module (6) are respectively connected to the interface module (4) through the power connection port (102) and the communication connection port (103). A plurality of elastic damping blocks (105) and two elastic insulating pressure plates (106) are also arranged in the hard protective shell (101). The elastic insulating pressure plates (106) are respectively distributed parallel to the axis of the hard protective shell (101) and symmetrically distributed on both sides of the axis of the hard protective shell (101), and each elastic insulating pressure plate (106) is respectively connected to the inner surface of the top and bottom of the hard protective shell (101) through the elastic damping blocks (105).
6. A mainframe modernization software transplantation device according to claim 4, characterized in that: The mobile data storage device (3) is based on any one of a mobile hard disk and a USB flash drive or a combination of the two; the interface module (4) includes any one of a USB interface, an AGP interface, a PCI-E interface, an HTTP interface, an RPC interface, a Web Service interface, an AUX interface, an SD interface, an HDMI interface, a Type-C interface, and an RG45 interface.
7. A mainframe modernization software transplantation device according to claim 4, characterized in that: The data integrated processing module (5) comprises a data processing circuit, a bus module, a MOS drive circuit module, and a control interface (104); the data processing circuit, the bus module, and the control interface (104) are all electrically connected to the MOS drive circuit module, and the MOS drive circuit module is also electrically connected to the interface module (4); the control interface (104) is embedded in the outer surface of the load-bearing keel (1), and is hinged to the outer surface of the load-bearing keel (1) through a ratchet mechanism; and the control interface (104) and the outer surface of the load-bearing keel (1) form an angle of 0°-90°.
8. The mainframe modernization software transplantation device according to claim 4, characterized in that: The emergency power supply module (6) comprises a battery pack, a multi-channel voltage-stabilized power supply and a charge-discharge control circuit, wherein the multi-channel voltage-stabilized power supply is electrically connected to the battery pack, the mobile data storage device (3), the interface module (4), the data integrated processing module (5) and the external power supply circuit respectively through the charge-discharge control circuit.
