[go: up one dir, main page]

CN114756221B - Automatic program generation method and device based on IBM AS400 - Google Patents

Automatic program generation method and device based on IBM AS400

Info

Publication number
CN114756221B
CN114756221B CN202210427508.4A CN202210427508A CN114756221B CN 114756221 B CN114756221 B CN 114756221B CN 202210427508 A CN202210427508 A CN 202210427508A CN 114756221 B CN114756221 B CN 114756221B
Authority
CN
China
Prior art keywords
program
template
code
module
adjusted
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.)
Active
Application number
CN202210427508.4A
Other languages
Chinese (zh)
Other versions
CN114756221A (en
Inventor
王巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Power Commercial Systems Co Ltd
Original Assignee
Inspur Power Commercial Systems Co Ltd
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 Inspur Power Commercial Systems Co Ltd filed Critical Inspur Power Commercial Systems Co Ltd
Priority to CN202210427508.4A priority Critical patent/CN114756221B/en
Publication of CN114756221A publication Critical patent/CN114756221A/en
Application granted granted Critical
Publication of CN114756221B publication Critical patent/CN114756221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种基于IBM AS400的程序自动生成方法,包括:获取目标运行要求;根据所述目标运行要求生成程序运行框架;所述程序运行框架包括多个待调整程序模板;对所述待调整程序模板进行调整,生成基于RPG语言的程序代码。根据用户输入的目标运行要求可以自动生成规范的待调整程序模板;之后对待调整程序模板进行调整即可得到规范的,符合要求的程序代码。而由于用户只需要输入目标运行要求以及对待调整程序模板进行调整即可生成程序代码,极大的减少了代码撰写的时间。本发明还提供了一装置、设备及存储介质,同样具有上述有益效果。

The present invention discloses a method for automatically generating programs based on IBM AS400, comprising: obtaining target operating requirements; generating a program operating framework based on the target operating requirements; the program operating framework including a plurality of program templates to be adjusted; and adjusting the program templates to be adjusted to generate program code based on the RPG language. A standardized program template to be adjusted can be automatically generated based on the target operating requirements input by a user; the program template to be adjusted can then be adjusted to obtain standardized program code that meets the requirements. Since the user only needs to input the target operating requirements and adjust the program template to be adjusted to generate program code, the time required for writing code is greatly reduced. The present invention also provides a device, equipment, and storage medium, which also have the above-mentioned beneficial effects.

Description

Automatic program generation method and device based on IBM AS400
Technical Field
The present invention relates to the field of program generation technology, and in particular, to a program automatic generation method based on IBM AS400, a program automatic generation apparatus based on IBM AS400, a program automatic generation device based on IBM AS400, and a computer readable storage medium.
Background
IBM AS400 is a small form factor machine that IBM plays, and millions of users are in use in the financial, retail, insurance, etc. areas. Many of the program developments of IBM AS400 are developed using the RPG language, which is collectively referred to AS Report Program Generator, the report program generation language. The main functions of the RPG program include realizing online/batch transactions by accessing a database, providing a man-machine access interface by an interactive program, realizing a functional module such as socket communication by API (application programming interface), and the like.
A set of complete RPG application programs comprises database file definition, service program definition, function module program definition, independent data structure definition, operation environment parameter definition, communication module definition, external access interface design and the like, interaction interface definition, printout document definition and the like. Due to the unique programming rules of RPG programs, development of RPG programs is ubiquitous in that new program writing requires a lot of time, and code forms are not standardized. How to provide a code that can quickly generate a formal specification for the IBM AS400 is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
Another object of the present invention is to provide an automatic program generating apparatus based on IBM AS400, an automatic program generating device based on IBM AS400, and a computer-readable storage medium, which can rapidly generate a code of a formal specification.
In order to solve the above technical problems, the present invention provides a program automatic generation method based on IBM AS400, comprising:
Acquiring a target operation requirement;
Generating a program operation framework according to the target operation requirement, wherein the program operation framework comprises a plurality of program templates to be adjusted;
And adjusting the program template to be adjusted to generate the program code based on the RPG language.
Optionally, the program template to be adjusted includes a database DDS definition template, a program flow control template, a program function module template, a program public parameter statement template, a program public module template, a program output template, an operation environment definition template, and an independent data structure definition template.
Optionally, the adjusting the program template to be adjusted, generating the program code based on the RPG language includes:
adjusting the program template to be adjusted, and compiling the program template to be adjusted into a service program;
And compiling the service program serving as a parameter of a generated program to obtain a program code based on the RPG language.
Optionally, the adjusting the program template to be adjusted, generating the program code based on the RPG language includes:
And adding file statement, data structure definition and data processing logic statement in preset format to the program template to be adjusted to generate program code based on RPG language.
Optionally, the adjusting the program template to be adjusted, generating the program code based on the RPG language includes:
Acquiring keywords;
And calling a code generation script to adjust the program template to be adjusted according to the keywords based on the pseudo code, and generating the program code based on the RPG language.
Optionally, after the generating the program code based on the RPG language, the method further includes:
and calling an entry program to test the program codes to obtain a test result.
Optionally, after the generating the program code based on the RPG language, the method further includes:
when the program code is generated, the program code is registered.
The invention also provides a program automatic generation device based on the IBM AS400, which comprises:
The requirement acquisition module is used for acquiring target operation requirements;
The system comprises a frame generation module, a program operation module and a program operation module, wherein the frame generation module is used for generating a program operation frame according to the target operation requirement;
and the code generation module is used for adjusting the program template to be adjusted and generating the program code based on the RPG language.
The invention also provides a program automatic generation device based on the IBM AS400, comprising:
A memory for storing a computer program;
A processor for implementing the steps of the IBM AS400 based program auto-generation method AS described in any of the above when executing the computer program.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the IBM AS400 based program automatic generation method AS described in any of the above.
The program automatic generation method based on the IBM AS400 comprises the steps of obtaining target operation requirements, generating a program operation framework according to the target operation requirements, wherein the program operation framework comprises a plurality of program templates to be adjusted, adjusting the program templates to be adjusted and generating program codes based on RPG language.
And then adjusting the program template to be adjusted to obtain the program codes meeting the requirements of the specifications. And as the user only needs to input the target operation requirement and adjust the program template to be adjusted to generate the program code, the code writing time is greatly reduced.
The invention also provides a program automatic generation device based on the IBM AS400, a program automatic generation device based on the IBM AS400 and a computer readable storage medium, which also have the beneficial effects.
Drawings
For a clearer description of embodiments of the invention or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for automatically generating a program based on an IBM AS400 according to an embodiment of the present invention;
FIG. 2 is a flowchart of a specific automatic program generation method based on the IBM AS400 according to an embodiment of the present invention;
FIG. 3 is a block diagram of an automatic program generating device based on an IBM AS400 according to an embodiment of the present invention;
FIG. 4 is a block diagram of an automatic program creation device based on an IBM AS400 according to an embodiment of the present invention.
Detailed Description
The core of the present invention is to provide a program automatic generation method based on IBM AS 400. In the prior art, the development of the RPG program generally has the following problems that a large amount of time is required for writing a new program, a large amount of non-standard program codes exist, non-standard program processing process interface definition exists, the definition of communication between the program and the operation is non-standard, and the algorithm of the program for controlling things is non-standard.
The program automatic generation method based on the IBM AS400 comprises the steps of obtaining target operation requirements, generating a program operation framework according to the target operation requirements, wherein the program operation framework comprises a plurality of program templates to be adjusted, and adjusting the program templates to be adjusted to generate program codes based on RPG language.
And then adjusting the program template to be adjusted to obtain the program codes meeting the requirements of the specifications. And as the user only needs to input the target operation requirement and adjust the program template to be adjusted to generate the program code, the code writing time is greatly reduced.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For the mini-machine of the IBM AS400, a typical online transaction processing flow includes:
The method comprises the steps of firstly, externally inputting messages and sending the messages to a communication port of a core host through an enterprise bus or a comprehensive front-end, wherein the number of the communication ports of the core host is 1 or more, each port is provided with 1 or more servo programs for processing, then, sending communication handles to a dispatch operation, completing message analysis and transaction information statistics in the dispatch operation, and sending transaction codes analyzed according to the messages to different data queues. And finally, the online operation obtains a communication handle and a transaction message by reading the data queue data, performs transaction encapsulation by a main control platform, performs business calculation by calling a specific transaction processing module, updates the accounting data, sends a transaction processing result message to a transaction initiating terminal through a communication session after printing output is completed, and closes the communication session after negotiation.
Correspondingly, the online transaction process comprises a plurality of parts such as a communication service program, a job distributing program, a transaction statistics program, a transaction processing program, a printing output program and the like. The communication processing is completed in the communication program and the transaction ending program, and the communication handle and the communication message are used as parameters to be transmitted between the programs or the operations. The communication module has similar processing logic, but the intercepted ports are different, the main control program has similar logic, and the transaction processing module configures the matched transaction processing module according to the number of the processed transactions. Aiming at the above scene, the application needs to configure program types such as communication program, message processing program, job dispatch program, main control program, transaction processing module, printing output program and the like. Each program type corresponds to a particular program template.
Whereas a typical batch program process flow generally includes two parts, a batch control program and a batch execution program, a batch run process includes a plurality of different phases, each running a different transaction content, by running multiple jobs in parallel to increase the speed of the run. When the batch control job needs to control the execution condition of the current batch job, the job content of the next batch can be submitted after the current batch job finishes running. This process includes batch control of jobs, batch execution of jobs. The batch execution operation needs to schedule different execution modules, for example, a bank batch needs to calculate batch collection and payment, a personal loan is due and repayment, a credit card is repayment automatically, a periodic automatic transfer is performed, and relevant service modules such as fund fixed throwing, settlement processing and the like can be called. This process requires the generation of batch control program templates, batch job templates, and the like.
Referring to fig. 1, fig. 1 is a flowchart of a program automatic generation method based on an IBM AS400 according to an embodiment of the present invention.
Referring to fig. 1, in an embodiment of the present invention, an automatic program generation method based on IBM AS400 includes:
S101, acquiring target operation requirements.
In this step, the user first needs to input a target operation requirement, which is an operation requirement input by the user according to a task executed by the user according to actual needs. The specific content of the operation requirement can be set according to the actual situation, and is not particularly limited herein. For example, the target operation requirement input here may be specifically that the above-described online transaction processing or batch program processing needs to be performed, or the like.
S102, generating a program operation framework according to the target operation requirement.
In an embodiment of the present invention, the program running framework includes a plurality of program templates to be adjusted.
In this step, a corresponding program running frame needs to be generated according to the above target running requirement, and the program running frame generally needs to include a plurality of program templates to be adjusted. In the embodiment of the invention, the program template to be adjusted comprises a database DDS definition template, a program flow control template, a program function module template, a program public parameter statement template, a program public module template, a program output template, an operation environment definition template and an independent data structure definition template. The various templates described above are the program code function modules involved in programming AS 400. For example, DDS (data description specifications, abbreviation of SQL-like definition grammar for defining database structures such AS tables, views, indexes, etc., is a special grammar structure for AS400 to define database internal structures) is script definition for AS400 to define database structures, AS AS400 is embedded with DB2/400 database to perform AS400 programming, one important step is to perform database structure definition, flow control module for designing control module to control next layer module call of program according to input parameters, program function module for defining specific transaction algorithm implementation, program public parameter statement module for defining global or local constant or variable assignment, program public module for defining public function or process statement, such AS password verification algorithm, etc., program output module for defining program output, such AS outputting user detail query result, outputting transaction confirmation output, etc., operating environment definition module for defining date format, defining accuracy of interest calculation, defining next settlement date, etc., independent data structure definition module, such AS message definition, secret key, IP, port definition, etc.
The program running frame of the format specification generated in the step comprises program templates of all key modules, and can also comprise communication program templates, a main control program template, an interactive program template, a transaction processing program template, a printing output program template and the like. The function program templates included in the program running framework can be set according to actual situations, and are not particularly limited herein.
And S103, adjusting the program template to be adjusted to generate the program code based on the RPG language.
In this step, the program template to be adjusted needs to be adjusted, so AS to generate the program code which is finally based on the RPG language and is applicable to the IBM AS 400.
Specifically, the method generally comprises the steps of adjusting the program template to be adjusted, compiling the program template to be adjusted into a service program, and compiling the service program serving as a parameter of a generated program to obtain a program code based on RPG language.
The Service Program provides functions and variables or constants externally through binding modules. The compiling process of the AS400 is relatively complex, the common code is compiled into a module, and public variables and functions required to be called externally in the module need to be subjected to Export statement through binding directory script, that is, in this step, the adjusted program template to be adjusted is compiled into a service program first, and after all the modules are compiled into the service program, the service program is compiled AS parameters of a generating program, and finally executable program codes are generated.
In particular, for a database DDS definition template, since IBM AS400 is essentially a database all-in-one machine, many programs running in AS400 are intersected with the database, and defining the database to be used is an important process before defining the program code. The database built in the IBM AS400 is DB2/400, the file type database and the relational database are integrated, the data of the database can be accessed and defined through SQL sentences, each specific database object (table, index, view, storage process and trigger) is also expressed AS a specific file object, the database aided design provided by the embodiment of the invention uses a DDS definition mode, and the storage process and the trigger adopt an external storage process and an automatic trigger generation algorithm.
For the program flow control templates, it mainly aims at C, CL and RPG to provide program control code fragments needed by various programming. Specifically, the program flow control template generally includes an online transaction control flow, a batch service control flow, a service maintenance control flow, and a data maintenance control flow, where the online transaction control flow includes a communication control flow, a master control flow, and a service processing control flow, the communication control flow includes a server communication program and a client communication program, and the batch service control flow may include a concurrent operation control flow, a job scheduling control flow, and a service processing control flow.
For a program function module template, the template generally comprises file declarations, data structure declarations, statement start keywords, control statement closed-loop design, design mode of SUBSR.. ENDSR, design of PROC.. ENDPR, variable and function declaration parts, input variables, operators and strict control of output variables; wherein the data structure declaration includes/COPY external file declaration reference, DCL-S variable declaration, DCL-C constant declaration, DCL-DS data structure declaration, pointer reference declaration, array declaration; control statement closed loop designs typically include dow.. ENDDO, for.. ENDFOR, IF...else..endif, DO...until, switch.. ENDSL, etc.; strict control of input variables, operators, output variables typically includes type compatibility, variable length compatibility, format or type conversion compatibility, and the like.
For the execution environment definition template, it mainly includes subsystem definition, job queue definition, job description definition, output queue definition, etc.
The above-mentioned program templates to be adjusted are generally only a general content, and in this step, each program template to be adjusted needs to be adjusted according to specific program implementation requirements, so that each program template to be adjusted has a corresponding function, and a program code corresponding to the whole program is finally obtained. It should be noted that, by adjusting the runtime environment definition template of the runtime environment and modifying the component parts of the automatically generated code, multiple processing options may be provided for the specific functional module, for example, different options such as files, data areas, data fields, data queues, user queues, etc. may be used for inter-process communication, different options may use different declarations, and different functions and parameters may also be required for writing and reading operations.
The details of this step will be described in detail in the following embodiments of the present invention, and will not be described herein.
The program automatic generation method based on the IBM AS400 comprises the steps of obtaining target operation requirements, generating a program operation framework according to the target operation requirements, wherein the program operation framework comprises a plurality of program templates to be adjusted, and adjusting the program templates to be adjusted to generate program codes based on RPG language.
And then adjusting the program template to be adjusted to obtain the program codes meeting the requirements of the specifications. And as the user only needs to input the target operation requirement and adjust the program template to be adjusted to generate the program code, the code writing time is greatly reduced.
The specific contents of a program automatic generation method based on the IBM AS400 provided by the present invention will be described in detail in the following embodiments of the present invention.
Referring to fig. 2, fig. 2 is a flowchart of a specific program automatic generation method based on the IBM AS400 according to an embodiment of the present invention.
Referring to fig. 2, in an embodiment of the present invention, the program auto-generation method based on the IBM AS400 includes:
S201, acquiring a target operation requirement.
S202, generating a program operation framework according to the target operation requirement.
The above S201 to S202 are substantially identical to S101 to S102 in the above embodiment of the present invention, and the detailed description will be omitted herein for reference to the above embodiment of the present invention.
S203, adding file declarations, data structure definitions and data processing logic sentences in a preset format to the program template to be adjusted, and generating program codes based on RPG language.
In the embodiment of the invention, two different specific ways for adjusting the program template to be adjusted are specifically provided. First, as in S203, a preset format is directly added to the program template to be adjusted, that is, a file statement, a data structure definition, and a data processing logic statement with uniform format are added to ensure that the format of the finally generated program code is uniform and standard. The specific contents of the file declaration, the data structure definition, and the data processing logic statement need to be set according to the actual situation, and are not specifically limited herein.
S204, acquiring keywords.
The first way to adjust the program template to be adjusted is S204 to S205, in which a keyword needs to be obtained, where the keyword generally characterizes that the parameter definition needs to be input is specified, the IO operation needs to be performed, the program module needs to be called is determined according to specific condition judgment, and the output format needs to be generated is specified. The specific content of the key words needs to be set according to the actual situation, and is not particularly limited herein.
S205, based on the pseudo code, calling a code generation script to adjust a program template to be adjusted according to the keywords, and generating the program code based on the RPG language.
In this step, the program template to be adjusted is adjusted based on the input keyword by the code generation script through the pseudo code, and the final program code is generated. This step generally includes two cases, the first one, based on the pre-key and the corresponding parameters, generates the corresponding code fragment, such as DCLF +u+a+disk+commit [ CUSTOMER ] for defining the declaration data table file CUSTOMER, the update mode is opened, the additional recording operation is supported, the database file attribute is supported, and the transaction is supported. Second, to add a computational part directly, such as a READ CUSTOMER.
In the step, specific program logic to be realized is prompted through configuration parameters and pseudo codes, and the program codes are automatically generated according to a background template. The parameter declaration of the program generated in this way adopts a fixed format, and the program module uses the well-standardized programming code, so that the success rate and the operation efficiency of the operation are guaranteed to a certain extent.
S206, calling an entry program to test the program code, and obtaining a test result.
Specifically, in the step, an entry program is called, a test program is started by inputting parameters, and the running process and the calculation result of the program are verified through interactive operation or modification of the running process. Specifically, the automatically generated program code can be directly compiled and run, the program code itself has a debugging output code, and the calculation result of the program intermediate process, the history of module call and the return code can be output in the debug mode, so as to reduce the debugging difficulty of the code.
S207, when the program code is generated, the program code is registered.
In the step, the registration process of the new code program can be automatically realized by combining with edition control tools such as Git, ratio Concert and the like when the new code program is generated, so that the code management and maintenance of team development are facilitated.
Examples of various typical codes (demo) can be built in the program running framework provided by the embodiment of the invention. Taking a server communication program as an example, providing a processing code based on blocking and a processing code of a non-blocking program, and providing a complete code segment for establishing a socket handle, binding an IP and a local port, monitoring, receiving a client request, sending data, receiving the data and closing the socket handle. The process for socket connection provides the present process, the spawn sub-process, the process complete code passed through the strides Cheng Goubing of givedescriptor () and takedescriptor ().
The method for automatically generating the program based on the IBM AS400 provided by the embodiment of the invention is different from a commercial case tool or a Code Generation tool (Code Generation) in the market, and the embodiment of the invention focuses on the IBM AS400 environment and commercial software use scene, and provides specialized environments in the aspects of compiling the program, managing the authority of a program object, realizing a function module, correcting a template and the like besides automatically generating the function Code. Under the condition of clear requirements, a program prototype is rapidly developed, program functions are realized, and the standardization and the readability of program codes are ensured while the precision and the accuracy are provided. The embodiment of the invention has the advantages of rapid program code development, rapid realization of codes of various standard scenes, realization of specified functions through simple adjustment, and higher integrity of code programs generated by the patent compared with other case tools, and direct compiling and running. The embodiment of the invention packages the code generation, code authority management and compiling processes related to programming, and is convenient for realizing the rapid processing of AS400 program writing.
The following describes an automatic program generating device based on IBM AS400 according to an embodiment of the present invention, and the automatic program generating device based on IBM AS400 described below and the automatic program generating method based on IBM AS400 described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a block diagram of an automatic program generating device based on IBM AS400 according to an embodiment of the present invention. Referring to fig. 3, the program auto-generation apparatus based on the IBM AS400 may include:
the requirement acquisition module 100 is configured to acquire a target operation requirement.
The frame generating module 200 is configured to generate a program operation frame according to the target operation requirement, where the program operation frame includes a plurality of program templates to be adjusted.
The code generating module 300 is configured to adjust the program template to be adjusted, and generate a program code based on RPG language.
Preferably, in the embodiment of the present invention, the program template to be adjusted includes a database DDS definition template, a program flow control template, a program function module template, a program public parameter declaration template, a program public module template, a program output template, an operation environment definition template, and an independent data structure definition template.
Preferably, in the embodiment of the present invention, the code generation module 300 includes:
and the service program unit is used for adjusting the program template to be adjusted and compiling the program template to be adjusted into a service program.
And the program code unit is used for performing program compiling by taking the service program as a parameter of a generated program to obtain the program code based on the RPG language.
Preferably, in the embodiment of the present invention, the code generating module 300 is configured to:
And adding file statement, data structure definition and data processing logic statement in preset format to the program template to be adjusted to generate program code based on RPG language.
Preferably, in the embodiment of the present invention, the code generation module 300 includes:
And the keyword acquisition unit is used for acquiring the keywords.
And the pseudo code unit is used for calling a code generation script to adjust the program template to be adjusted according to the keywords based on the pseudo code, and generating the program code based on the RPG language.
Preferably, in an embodiment of the present invention, the method further includes:
and the test module is used for calling an entry program to test the program codes to obtain a test result.
Preferably, in an embodiment of the present invention, the method further includes:
and the registration module is used for registering the program code when the program code is generated.
The program automatic generating device based on the IBM AS400 of the present embodiment is used to implement the foregoing program automatic generating method based on the IBM AS400, so that the specific implementation of the program automatic generating device based on the IBM AS400 can be seen in the foregoing example portions of the program automatic generating method based on the IBM AS400, for example, the requirement obtaining module 100, the framework generating module 200, and the code generating module 300 are respectively used to implement steps S101 to S103 in the foregoing program automatic generating method based on the IBM AS400, so that the specific implementation thereof will not be repeated herein with reference to the description of the corresponding respective partial examples.
The following describes an apparatus for automatically generating a program based on IBM AS400 according to an embodiment of the present invention, where the apparatus for automatically generating a program based on IBM AS400 described below and the method for automatically generating a program based on IBM AS400 described above and the apparatus for automatically generating a program based on IBM AS400 can be referred to in correspondence with each other.
Referring to fig. 4, fig. 4 is a block diagram of an automatic program generating device based on IBM AS400 according to an embodiment of the present invention.
Referring to fig. 4, the program auto-generating device based on the IBM AS400 may include a processor 11 and a memory 12.
The memory 12 is used for storing a computer program, and the processor 11 is used for implementing the specific content of the program automatic generation method based on the IBM AS400 in the embodiment of the invention when executing the computer program.
The processor 11 in the program automatic generation device based on the IBM AS400 of the present embodiment is used to install the program automatic generation device based on the IBM AS400 described in the above embodiment of the present invention, and the processor 11 in combination with the memory 12 can implement the program automatic generation method based on the IBM AS400 described in any one of the above embodiments of the present invention. Thus, the specific implementation of the program automatic generation device based on the IBM AS400 can be found in the foregoing part of the embodiment of the program automatic generation method based on the IBM AS400, and the specific implementation thereof can refer to the description of the corresponding embodiment of each part, which is not repeated herein.
The present invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements a method for automatically generating a program based on IBM AS400 AS described in any of the above embodiments of the present invention. The remainder of this disclosure may refer to the prior art and will not be described further herein.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The above describes in detail a program automatic generation method based on IBM AS400, a program automatic generation apparatus based on IBM AS400, a program automatic generation device based on IBM AS400, and a computer-readable storage medium provided by the present invention. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (4)

1. An automatic program generation method based on IBM AS400, comprising:
Acquiring a target operation requirement;
generating a program operation framework according to the target operation requirement, wherein the program operation framework comprises a plurality of program templates to be adjusted, and the program templates to be adjusted comprise a database DDS definition template, a program flow control template, a program function module template, a program public parameter statement template, a program public module template, a program output template, an operation environment definition template and an independent data structure definition template;
The key word characterization comprises the steps of designating parameter definition to be input, IO operation to be performed, determining a program module to be called according to specific condition judgment, and designating an output format to be generated;
Based on the pseudo code, calling a code generation script to adjust the program template to be adjusted according to the keywords, and generating a program code based on RPG language;
Calling an entry program to test the program code to obtain a test result;
when the program code is generated, the program code is registered by a version control tool.
2. An automatic program generating apparatus based on IBM AS400, comprising:
The requirement acquisition module is used for acquiring target operation requirements;
The system comprises a frame generation module, a program operation module and a control module, wherein the frame generation module is used for generating a program operation frame according to the target operation requirement, and the program operation frame comprises a plurality of program templates to be adjusted, wherein the program templates to be adjusted comprise a database DDS definition template, a program flow control template, a program function module template, a program public parameter statement template, a program public module template, a program output template, an operation environment definition template and an independent data structure definition template;
the keyword characterization comprises designating parameter definition to be input, IO operation to be performed, determining a program module to be called according to specific condition judgment, and designating an output format to be generated;
The pseudo code unit is used for calling a code generation script to adjust the program template to be adjusted according to the keywords based on the pseudo code, and generating a program code based on RPG language;
the test module is used for calling an entry program to test the program codes to obtain a test result;
And the registration module is used for registering the program code through a version control tool when the program code is generated.
3. An IBM AS400 based program auto-generation apparatus, comprising:
A memory for storing a computer program;
A processor for implementing the steps of the IBM AS400 based program auto-generation method AS claimed in claim 1 when executing said computer program.
4. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the IBM AS400 based program automatic generation method according to claim 1.
CN202210427508.4A 2022-04-22 2022-04-22 Automatic program generation method and device based on IBM AS400 Active CN114756221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210427508.4A CN114756221B (en) 2022-04-22 2022-04-22 Automatic program generation method and device based on IBM AS400

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210427508.4A CN114756221B (en) 2022-04-22 2022-04-22 Automatic program generation method and device based on IBM AS400

Publications (2)

Publication Number Publication Date
CN114756221A CN114756221A (en) 2022-07-15
CN114756221B true CN114756221B (en) 2025-08-01

Family

ID=82331104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210427508.4A Active CN114756221B (en) 2022-04-22 2022-04-22 Automatic program generation method and device based on IBM AS400

Country Status (1)

Country Link
CN (1) CN114756221B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117970865A (en) * 2024-04-02 2024-05-03 深圳市今天国际软件技术有限公司 Method and system for automatically generating PLC (programmable logic controller) program for intelligent logistics system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408043A (en) * 2018-10-19 2019-03-01 中国银行股份有限公司 A kind of program creating method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2147192A1 (en) * 1994-06-29 1995-12-30 Tadao Matsuzuki Automatic program generator
JPH0816379A (en) * 1994-06-29 1996-01-19 Marukin Corp:Kk Automatic program generator
WO2019164036A1 (en) * 2018-02-23 2019-08-29 주식회사 이젠고 Web-based application development method
CN110879710B (en) * 2019-07-24 2023-07-07 中信银行股份有限公司 Method for automatically converting RPG program into JAVA program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408043A (en) * 2018-10-19 2019-03-01 中国银行股份有限公司 A kind of program creating method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
软件工程工具AS_SET与应用系统开发;李晓林;国防科技参考;19950331;第16卷(第1期);第90-95页 *

Also Published As

Publication number Publication date
CN114756221A (en) 2022-07-15

Similar Documents

Publication Publication Date Title
US7035786B1 (en) System and method for multi-phase system development with predictive modeling
US7031901B2 (en) System and method for improving predictive modeling of an information system
US7584416B2 (en) Logical representation of a user interface form
US20020046149A1 (en) Apparatus, methods and articles of manufacture for constructing and executing computerized transaction processes and programs
WO2002033636A9 (en) Apparatus, methods and articles of manufacture for constructing and executing computerized transaction processes and programs
US8862613B2 (en) Extensibility of business process and application logic
US20230153401A1 (en) Systems and methods for third-party library management
US20120030223A1 (en) Extensibility of business process and application logic
US20220129283A1 (en) Methods, systems, and media for generating an updated workflow for an operation executable by a computing device
CN1860498A (en) Computer-based transaction processing system and computer-implemented method for transacting services between service providers and customers
Skotnica et al. Process Digitalization using Blockchain: EU Parliament Elections Case Study.
CN114756221B (en) Automatic program generation method and device based on IBM AS400
WO2024066749A1 (en) Blockchain transaction execution method and apparatus, program product, device, and medium
CN111488172A (en) Authority control method and device and readable storage medium
CN108008977B (en) Software development service platform oriented to function outsourcing
Arifulina et al. SeSAME: Modeling and analyzing high-quality service compositions
CN118897675A (en) Component library construction and calling method, device, equipment and storage medium
CN112947963A (en) Interface operation and maintenance method and device, computer equipment and storage medium
CN110795137B (en) Authority configuration method, device, system, electronic equipment and readable medium
CN116757762A (en) Automatic invoicing method, device, equipment and storage medium for all-electric invoice
Barber et al. Enabling iterative software architecture derivation using early non-functional property evaluation
US20230195792A1 (en) Database management methods and associated apparatus
US20120240097A1 (en) Method of providing software development services
CN114721641A (en) Method and device for automatically generating code, electronic equipment and storage medium
CN106528718A (en) Method and device for processing data from third parties

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant