A host parameter access method and device

By defining constants in the assembler and loading them into the application's memory address using the CICS middleware's startup search chain, the problems of low host parameter access efficiency and inflexible configuration are solved, achieving high-performance, high-concurrency parameter retrieval and flexible configuration.

CN115421817BActive Publication Date: 2026-11-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211087733.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-07
Publication Date
2026-11-27
Estimated Expiration
2042-09-07

AI Technical Summary

Technical Problem

Existing host parameter access methods are inefficient and cannot meet the requirements of high performance and high concurrency. Alternatively, although they can meet the requirements of high performance and high concurrency, they are not flexible in configuration and cannot modify parameters.

Method used

The host parameters are defined as constants in the assembler and loaded into the application's memory address through a predefined data structure. The CICS middleware's startup search chain is used to copy and retrieve them, so that the application can meet the requirements of high performance and high concurrency without recompiling the application. The parameters can also be flexibly configured.

Benefits of technology

It achieves high-performance, high-concurrency parameter retrieval in high-frequency interaction scenarios, while the parameters can be flexibly configured without recompiling the application, thus isolating the parameters in the assembly program from the application program.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115421817B_ABST
    Figure CN115421817B_ABST
Patent Text Reader

Abstract

The application provides a host parameter access method and device, which defines an assembly constant as a parameter according to a predetermined data structure in an assembly program, loads the assembly constant into a memory address specified by an application program, and provides a method for the application program to parse and obtain the parameter according to the predetermined data structure, so that the high-performance and high-concurrency value requirement can be met without recompiling and loading the application program, the parameter can be flexibly configured, the high-performance and high-concurrency parameter value requirement in a high-frequency interaction scenario of a host and a gateway can be met, the host parameter can be flexibly configured, the parameter saved in the assembly program is isolated from the application program, and the parameter does not need to be recompiled and loaded when being modified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of host configuration technology, specifically, it relates to a host parameter access method and apparatus. Background Technology

[0002] Currently, there are generally two methods for accessing host parameters. The first is to use a database or dataset to store them, and the application obtains the parameter values ​​by connecting to the database or accessing the dataset. The second is to write the host parameters into the application for direct use.

[0003] While using databases or datasets to store and retrieve parameters is convenient, flexible, and widely used, it requires connecting to and accessing the database or manipulating the dataset, resulting in low efficiency and failing to meet the requirements for high-performance, high-concurrency parameter retrieval. The second method, writing host parameters directly into the application, while satisfying the requirements for high-performance, high-concurrency parameter retrieval, suffers from the inability to modify these host parameters, making configuration inflexible.

[0004] Given the shortcomings of existing technologies, there is a need for a method that can meet the requirements of high performance and high concurrency value retrieval without recompiling the application, while also allowing for flexible parameter configuration. Summary of the Invention

[0005] This application provides a host parameter access method and apparatus to at least solve the problems of the two current host parameter access methods being inefficient, unable to meet the requirements of high performance and high concurrency, or, although they can meet the requirements of high performance and high concurrency, the host parameters cannot be modified and the configuration is inflexible.

[0006] According to one aspect of this application, a method for accessing host parameters is provided, comprising:

[0007] Determine the storage space and data structures to be used to store the target assembler;

[0008] The target assembler is compiled and then added to the startup search chain of the customer information control system;

[0009] Copy the target code of the target assembler to the storage space according to the startup search chain;

[0010] Obtain the host parameter values ​​corresponding to the target assembler through data structures.

[0011] In one embodiment, determining the storage space and its data structure for storing the target assembler includes:

[0012] Define the name of the memory address space and its data structure for storing the assembly program in the customer information control system.

[0013] In one embodiment, compiling the target assembler and adding it to the startup search chain of the customer information control system includes:

[0014] Compile the target assembler into the LOAD library;

[0015] Add the LOAD library to the startup search chain of the customer information control system.

[0016] In one embodiment, the host parameter access method further includes:

[0017] Use CSECT to write the target assembly program in segments;

[0018] Host parameter values ​​are defined using constant definition instructions.

[0019] In one embodiment, copying the target code of the target assembler to the storage space according to the startup search chain includes:

[0020] The target code of the target assembler is determined based on the startup search chain;

[0021] Copy the target code into the memory address space of the customer information control system.

[0022] In one embodiment, obtaining the host parameter values ​​corresponding to the target assembler through a data structure includes:

[0023] The host parameter values ​​corresponding to the target assembler are obtained by using a pre-defined data structure.

[0024] In one embodiment, the host parameter access method further includes:

[0025] Load the target assembler;

[0026] The target assembler is loaded into a predetermined memory space by setting the address using a standard request.

[0027] According to another aspect of this application, a host parameter access device is also provided, comprising:

[0028] Define a unit to determine the storage space and data structures used to store the target assembler;

[0029] The compilation unit is used to compile the target assembler and add it to the startup search chain of the customer information control system;

[0030] The parameter storage unit is used to copy the target code of the target assembler to the storage space according to the startup search chain;

[0031] The parameter reading unit is used to obtain the host parameter values ​​corresponding to the target assembler through data structures.

[0032] In one embodiment, determining the storage space and its data structure for storing the target assembler includes:

[0033] Define the name of the memory address space and its data structure for storing the assembly program in the customer information control system.

[0034] In one embodiment, the defining unit includes:

[0035] The library compilation module is used to compile the target assembler into the LOAD library;

[0036] The library addition module is used to add the LOAD library to the startup search chain of the customer information control system.

[0037] In one embodiment, the host parameter access device further includes:

[0038] The segmented writing module is used to write target assemblers in segments using CSECT.

[0039] The constant definition module is used to define host parameter values ​​through constant definition instructions.

[0040] In one embodiment, the parameter storage unit includes:

[0041] The target code determination module is used to determine the target code of the target assembler based on the startup search chain;

[0042] The copy module is used to copy the target code into the memory address space of the customer information control system.

[0043] In one embodiment, the parameter reading unit includes:

[0044] The parameter value acquisition module is used to obtain the host parameter values ​​corresponding to the target assembler through a pre-defined data structure.

[0045] In one embodiment, the host parameter access device further includes:

[0046] The program loading module is used to load the target assembler.

[0047] The space loading module is used to load the target assembler into a predetermined memory space by setting the address through standard requests.

[0048] The host parameter access method and apparatus provided in this application define assembly constants as parameters in the assembler according to a predetermined data structure, load them into the memory address specified by the application, and allow the application to parse and retrieve them according to the predetermined data structure. This achieves high-performance, high-concurrency parameter retrieval requirements without recompiling and loading the application, while also allowing for flexible parameter configuration. It can meet the high-performance, high-concurrency parameter retrieval requirements in scenarios such as high-frequency interaction between hosts and gateways, and it allows for flexible configuration of host parameters, isolating the parameters stored in the assembler from the application; modifying parameters does not require recompiling and loading the application. The method provided in this application is not limited to mainframe applications; it can also be used in various application areas such as open platforms and embedded platforms. Attached Figure Description

[0049] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0050] Figure 1 This application provides a method for accessing host parameters.

[0051] Figure 2 This is a flowchart illustrating the method of compiling the target assembler and adding it to the startup search chain of the customer information control system in this embodiment of the application.

[0052] Figure 3 This is a flowchart of another host parameter access method in an embodiment of this application.

[0053] Figure 4 This is a flowchart illustrating a method for copying the target code of a target assembler to storage space according to a startup search chain, as described in this application embodiment.

[0054] Figure 5 This is a flowchart of a host parameter access method in another embodiment of this application.

[0055] Figure 6 This is a schematic diagram of the system for accessing host parameters in an embodiment of this application.

[0056] Figure 7 This application provides a structural block diagram of a host parameter access device.

[0057] Figure 8 This is a structural block diagram of the defined unit in the embodiments of this application.

[0058] Figure 9 This is a structural block diagram of another host parameter access device in an embodiment of this application.

[0059] Figure 10 This is a structural block diagram of the parameter storage unit in an embodiment of this application.

[0060] Figure 11 This is a structural block diagram of a host parameter access device in another embodiment of this application.

[0061] Figure 12 This is a specific implementation of an electronic device in the embodiments of this application. Detailed Implementation

[0062] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0063] Currently, there are generally two methods for accessing host parameters. The first is to use a database or dataset to store them, and the application obtains the parameter values ​​by connecting to the database or accessing the dataset. The second is to write the host parameters into the application for direct use.

[0064] While using databases or datasets to store and retrieve parameters is convenient, flexible, and widely used, it requires connecting to and accessing the database or manipulating the dataset, resulting in low efficiency and failing to meet the requirements for high-performance, high-concurrency value retrieval. The second method, writing host parameters directly into the application, while satisfying the requirements for high-performance, high-concurrency value retrieval, suffers from the inability to modify these host parameters, making configuration inflexible.

[0065] To address the problems existing in the prior art, this application provides a method for accessing host parameters, such as... Figure 1 As shown, it includes:

[0066] S101: Determine the storage space and data structure to be used to store the target assembler.

[0067] S102: Compile the target assembler and add it to the startup search chain of the customer information control system.

[0068] S103: Copy the target code of the target assembler to the storage space according to the startup search chain.

[0069] S104: Obtain the host parameter values ​​corresponding to the target assembler through the data structure.

[0070] In one specific embodiment, assembler constants are first defined, where they are defined as parameters according to a predetermined data structure within the assembler. Then, the assembler is loaded into the memory address specified by the application. After loading, address space resolution and parameter retrieval are performed; the application resolves the address space and retrieves the parameters according to the predetermined data structure.

[0071] In one embodiment, determining the storage space and its data structure for storing the target assembler includes:

[0072] Define the name of the memory address space and its data structure for storing the assembly program in the customer information control system.

[0073] In one embodiment, the target assembler is compiled and added to the startup search chain of the customer information control system, such as... Figure 2 As shown, it includes:

[0074] S201: Compile the target assembler into the LOAD library.

[0075] S202: Add the LOAD library to the startup search chain of the customer information control system.

[0076] In one embodiment, such as Figure 3 As shown, the host parameter access method also includes:

[0077] S301: Use CSECT segmentation to write target assemblers.

[0078] S302: Define host parameter values ​​using constant definition instructions.

[0079] In one embodiment, the target code of the target assembler is copied to the storage space according to the startup search chain, such as... Figure 4 As shown, it includes:

[0080] S401: Determine the target code of the target assembler based on the startup search chain.

[0081] S402: Copy the target code into the memory address space of the customer information control system.

[0082] In one embodiment, obtaining the host parameter values ​​corresponding to the target assembler through a data structure includes:

[0083] The host parameter values ​​corresponding to the target assembler are obtained by using a pre-defined data structure.

[0084] In one embodiment, such as Figure 5 As shown, the host parameter access method also includes:

[0085] S501: Load the target assembler.

[0086] S502: Load the target assembler into a predetermined memory space by setting the address via a standard request.

[0087] Mainframe: refers to IBM mainframes, or IBM small and medium-sized servers running the OS / 390 operating system.

[0088] CICS (Customer Information Control System): A mainframe transaction processing middleware from IBM that supports Online Transaction Processing (OLTP), provides online transaction processing and transaction management for applications, enables high-concurrency online transactions, and provides users with real-time transaction requests and responses.

[0089] Dataset: A dataset is the most basic storage unit on a host, equivalent to a file in a FAT file system. There are four main types of datasets: Sequential Datasets (PS), Partitioned Datasets (PDS or PO), Extended Partitioned Datasets (PDSE), and VSAM (Virtual Storage Access Method) datasets.

[0090] COBOL (Common Business Oriented Language): The primary language for IBM mainframe application development, suitable for business and data processing. The "applications" mentioned in this invention are developed using languages ​​including, but not limited to, COBOL, with COBOL being the primary example.

[0091] like Figure 6 The diagram shown is a schematic of a system for accessing host parameters, including:

[0092] IBM mainframe 100, CICS middleware 101; assembler source code dataset 201, assembler object code LOAD library 202, assembler memory address space 203; application source code dataset 301, application object code LOAD library 302, application memory address space 303.

[0093] First, edit the source code on the assembler source code dataset 201, using CSECT segmentation, and define constants (parameter values) using the constant definition instruction DC. See [link / reference]. Figure 4 Example.

[0094] Then, the assembler is compiled into the assembler object code LOAD library 202, and the assembler object code LOAD library 202 is added to the startup search chain of the CICS middleware 101 (or an existing search chain is used).

[0095] Next, the assembly program object code is NEWCOPYed into CICS middleware 101 (assembler memory address space 203).

[0096] Edit the application on application source code dataset 301, and define the memory address space name and its data structure for storing the assembly program in "LINKAGE SECTION." (See...) Figure 3 Example. Additionally, for the processing module in the application that implements the function of "loading the assembler using EXEC CICS LOAD and loading it into the specified memory address space via SET ADDRESS", see [link to example]. Figure 5 Example.

[0097] The edited application source code is compiled into the application target code LOAD library 302 and then NEWCOPYed into the CICS middleware 101 (application memory address space 303).

[0098] When the application needs to use parameters, it loads the assembler using `EXEC CICS LOAD` and then loads the assembler into the memory address space defined in `LINKAGE SECTION.` to store the assembler using `SETADDRESS`. Because the data structure of this address space corresponds to the data structure defined in the assembler constants, the corresponding constants (parameter values) can be easily obtained through the address space data structure defined in `LINKAGE SECTION.`. See [link to documentation]. Figure 6 Example.

[0099] If the parameters need to be changed, simply modify the constant definition in the assembler, then compile and rewrite. The parameter configuration is transparent to the application; the application does not need to be recompiled or rewritten.

[0100] This application achieves high-performance, high-concurrency value retrieval without recompiling and loading the application by defining assembly constants as parameters in the assembler according to a predetermined data structure and loading them into a memory address specified by the application. This allows the application to parse and retrieve values ​​based on the predetermined data structure. It also enables flexible parameter configuration, meeting the high-performance, high-concurrency parameter requirements in scenarios such as high-frequency interaction between hosts and gateways. Furthermore, it allows for flexible configuration of host parameters, isolating the parameters stored in the assembler from the application; modifying parameters does not require recompiling and loading the application. The method provided in this application is not limited to mainframe applications; it can also be used in various application areas such as open platforms and embedded platforms.

[0101] Based on the same inventive concept, this application also provides a host parameter access device, which can be used to implement the method described in the above embodiments, as described in the following embodiments. Since the principle of this host parameter access device in solving the problem is similar to that of the host parameter access method, the implementation of the host parameter access device can refer to the implementation of the host parameter access method, and repeated details will not be elaborated further. As used below, the terms "unit" or "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0102] According to another aspect of this application, a host parameter access device is also provided, such as... Figure 7 As shown, it includes:

[0103] Define unit 701 to determine the storage space and data structure for storing the target assembler;

[0104] Compilation unit 702 is used to compile the target assembler and add it to the startup search chain of the customer information control system;

[0105] The parameter storage unit 703 is used to copy the target code of the target assembler to the storage space according to the startup search chain;

[0106] The parameter reading unit 704 is used to obtain the host parameter values ​​corresponding to the target assembler through a data structure.

[0107] In one embodiment, determining the storage space and its data structure for storing the target assembler includes:

[0108] Define the name of the memory address space and its data structure for storing the assembly program in the customer information control system.

[0109] In one embodiment, such as Figure 8 As shown, the defined unit 701 includes:

[0110] Library compilation module 801 is used to compile the target assembler into the LOAD library;

[0111] The library addition module 802 is used to add the LOAD library to the startup search chain of the customer information control system.

[0112] In one embodiment, such as Figure 9 As shown, the host parameter access device also includes:

[0113] Segmented writing module 901 is used to write target assemblers in segments using CSECT;

[0114] The constant definition module 902 is used to define host parameter values ​​through constant definition instructions.

[0115] In one embodiment, such as Figure 10 As shown, the parameter storage unit 703 includes:

[0116] The target code determination module 1001 is used to determine the target code of the target assembler based on the startup search chain.

[0117] The copy module 1002 is used to copy the target code into the memory address space of the customer information control system.

[0118] In one embodiment, the parameter reading unit 704 includes:

[0119] The parameter value acquisition module is used to obtain the host parameter values ​​corresponding to the target assembler through a pre-defined data structure.

[0120] In one embodiment, such as Figure 11 As shown, the host parameter access device also includes:

[0121] Program loading module 1101 is used to load the target assembler;

[0122] The space loading module 1102 is used to load the target assembler into a predetermined storage space by setting the address through a standard request.

[0123] This application achieves high-performance, high-concurrency value retrieval without recompiling and loading the application by defining assembly constants as parameters in the assembler according to a predetermined data structure and loading them into a memory address specified by the application. This allows the application to parse and retrieve values ​​based on the predetermined data structure. It also enables flexible parameter configuration, meeting the high-performance, high-concurrency parameter requirements in scenarios such as high-frequency interaction between hosts and gateways. Furthermore, it allows for flexible configuration of host parameters, isolating the parameters stored in the assembler from the application; modifying parameters does not require recompiling and loading the application. The method provided in this application is not limited to mainframe applications; it can also be used in various application areas such as open platforms and embedded platforms.

[0124] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0125] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0126] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0127] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0128] Specific embodiments have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.

[0129] This application also provides a specific implementation of an electronic device capable of implementing all the steps in the methods described above. See [link to implementation details]. Figure 12 The electronic device specifically includes the following:

[0130] Processor 1201, memory 1202, communications interface 1203, bus 1204, and non-volatile memory 1205;

[0131] The processor 1201, memory 1202, and communication interface 1203 communicate with each other through the bus 1204.

[0132] The processor 1201 is used to call a computer program in the memory 1202 and the non-volatile memory 1205. When the processor executes the computer program, it implements all the steps in the method in the above embodiments. For example, when the processor executes the computer program, it implements the following steps:

[0133] S101: Determine the storage space and data structure to be used to store the target assembler.

[0134] S102: Compile the target assembler and add it to the startup search chain of the customer information control system.

[0135] S103: Copy the target code of the target assembler to the storage space according to the startup search chain.

[0136] S104: Obtain the host parameter values ​​corresponding to the target assembler through the data structure.

[0137] Embodiments of this application also provide a computer-readable storage medium capable of implementing all steps of the methods in the above embodiments. The computer-readable storage medium stores a computer program that, when executed by a processor, implements all steps of the methods in the above embodiments. For example, when the processor executes the computer program, it implements the following steps:

[0138] S101: Determine the storage space and data structure to be used to store the target assembler.

[0139] S102: Compile the target assembler and add it to the startup search chain of the customer information control system.

[0140] S103: Copy the target code of the target assembler to the storage space according to the startup search chain.

[0141] S104: Obtain the host parameter values ​​corresponding to the target assembler through the data structure.

[0142] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on its differences from other embodiments. In particular, for hardware + program embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments. Although the embodiments in this specification provide the method operation steps as shown in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-inventive means. The order of steps listed in the embodiments is merely one possible execution order among many steps and does not represent the only execution order. In actual device or terminal product execution, the methods can be executed in the order shown in the embodiments or drawings or in parallel (e.g., in a parallel processor or multi-threaded processing environment, or even a distributed data processing environment). The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, product, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, product, or apparatus. Without further limitations, the presence of other identical or equivalent elements in the process, method, product, or apparatus that includes said elements is not excluded. For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing the embodiments of this specification, the functions of each module can be implemented in one or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units, etc. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions, which are executable by the processor of the computer or other programmable data processing device, produce instructions for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0143] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, the embodiments of this specification can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The various embodiments in this specification are described in a progressive manner, and similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the description of the method embodiments. In the description of this specification, the reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., means that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the embodiments of this specification.

[0144] In this specification, the illustrative expressions of the terms used do not necessarily refer to the same embodiments or examples. Furthermore, those skilled in the art can combine and integrate different embodiments or examples described in this specification, as well as features of different embodiments or examples, without contradiction. The above descriptions are merely embodiments of this specification and are not intended to limit the embodiments of this specification. Various modifications and variations can be made to the embodiments of this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the embodiments of this specification should be included within the scope of the claims of the embodiments of this specification.

Claims

1. A method for accessing host parameters, characterized in that, include: In the customer information control system, define the name of the memory address space for storing the assembly program and its data structure. The data structure is consistent with the data structure corresponding to each host parameter value defined by the constant definition instruction in the target assembly program. Use CSECT to write the target assembly program in segments; Host parameter values ​​are defined using constant definition instructions; The target assembler is compiled into the LOAD library, and the LOAD library is added to the startup search chain of the customer information control system. The target code of the target assembler is determined according to the startup search chain, and the target code is copied into the memory address space of the customer information control system. The host parameter values ​​corresponding to the target assembler are obtained through the predetermined data structure. If the host parameters need to be changed, simply change the constant definitions in the target assembler, and then compile and NEWCOPY the target assembler once.

2. The host parameter access method according to claim 1, characterized in that, Also includes: Load the target assembler; The target assembler is loaded into a predetermined memory space by setting the address using a standard request.

3. A host parameter access device, characterized in that, include: A definition unit is used to define the name of the memory address space for storing the assembly program and its data structure in the customer information control system. The data structure is consistent with the data structure corresponding to each host parameter value defined by constant definition instructions in the target assembly program. The compilation unit is used to compile the target assembler into the LOAD library and add the LOAD library to the startup search chain of the customer information control system. The parameter storage unit is used to determine the target code of the target assembler according to the startup search chain, and copy the target code into the memory address space of the customer information control system. The parameter reading unit is used to obtain the host parameter values ​​corresponding to the target assembler through the predetermined data structure; The host parameter access device further includes: The segmented writing module is used to write target assemblers in segments using CSECT. The constant definition module is used to define host parameter values ​​through constant definition instructions; The update unit is used so that if the host parameters need to be changed, only the constant definition needs to be changed in the target assembler, and the target assembler needs to be compiled and NEWCOPYed once.

4. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the host parameter access method according to any one of claims 1 to 2.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the host parameter access method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Source code compiling method, executable file running method and terminal equipment

    CN111767056A