CN113157257B - Rapid development device for banking system - Google Patents

Rapid development device for banking system Download PDF

Info

Publication number
CN113157257B
CN113157257B CN202110389421.8A CN202110389421A CN113157257B CN 113157257 B CN113157257 B CN 113157257B CN 202110389421 A CN202110389421 A CN 202110389421A CN 113157257 B CN113157257 B CN 113157257B
Authority
CN
China
Prior art keywords
cobol
conversion
program
grammar
interface
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
CN202110389421.8A
Other languages
Chinese (zh)
Other versions
CN113157257A (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.)
Shandong City Commercial Banks Alliance Co ltd
Original Assignee
Shandong City Commercial Banks Alliance 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 Shandong City Commercial Banks Alliance Co ltd filed Critical Shandong City Commercial Banks Alliance Co ltd
Priority to CN202110389421.8A priority Critical patent/CN113157257B/en
Publication of CN113157257A publication Critical patent/CN113157257A/en
Application granted granted Critical
Publication of CN113157257B publication Critical patent/CN113157257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The invention provides a rapid development device for a banking system, which comprises: the database conversion module is used for creating a database table which accords with the relevant data management standard, and converting the database table into a COBOL table data structure definition file according to the COBOL grammar specification and the bank system architecture rule; the application program interface conversion module is used for defining data of an input interface, an output interface, a file interface, an internal service function interface, constants, a platform interface and other interfaces, and converting the data into a COBOL table data structure definition file according to COBOL grammar specification and bank system architecture rules and a translation identifier; and the application architecture conversion module is used for converting the ADML program into a COBOL program conforming to the COBOL grammar specification and the bank system architecture rule. The design realizes the mapping and conversion of the graphic control and the COBOL code, and effectively improves the development efficiency and quality of the COBOL program of the banking system.

Description

Rapid development device for banking system
Technical Field
The invention relates to the field of program development, in particular to a rapid development device for COBOL programs of a banking system.
Background
COBOL is a typical data processing language in a file system, and files (e.g., files, accounts, etc.) are the basis for transaction data processing. COBOL program organizes the processing objects into files in a certain way, records the files on the external equipment of the computer, and describes the connection between data items in the same file through the description of the data hierarchy structure, so that the processing objects can be searched and processed at any level of the data. Banking systems are typically programmed using COBOL language as a typical transaction data processing requirement.
At present, the method is limited by the complexity of data processing of a banking system, and for novice developing the banking system by using COBOL programs, when the programs are just started to be developed, the problems of long learning time, poor development quality, slow hand and the like are caused by insufficient business and technical experience and insufficient knowledge of development flow, development specifications, various bottom platform components and development languages of the COBOL programs of the banking system.
Disclosure of Invention
In order to solve the problems, the quick development device for the banking system is provided, mapping and conversion of the graphic control and COBOL codes are realized, and development efficiency and quality of COBOL programs of the banking system are effectively improved.
The embodiment of the invention provides a rapid development device for a banking system, which comprises the following components:
the database conversion module is used for creating a database table which accords with the relevant data management standard, and converting the database table into a COBOL table data structure definition file according to the COBOL grammar specification and the bank system architecture rule;
the application program interface conversion module is used for defining data of an input interface, an output interface, a file interface, an internal service function interface, constants, a platform interface and other interfaces, and converting the data into a COBOL table data structure definition file according to COBOL grammar specification and bank system architecture rules and a translation identifier;
and the application architecture conversion module is used for converting the visualization program into a COBOL program conforming to the COBOL grammar specification and the bank system architecture rule.
Further, the data conversion module includes, but is not limited to, the following conversion logic:
string [ n ], translate to X (n) or not translate according to the translator identifier;
decimal [ m, n ] is translated into S9 (m-n) V9 (n) COMP-3 or S9 (m-n) V9 (n) or 9 (m-n) V9 (n) COMP-3 or 9 (m-n) V9 (n) according to the translation identifier;
decimal [ m,0] is translated into S9 (m) COMP-3 or 9 (m) COMP-3 based on the translation identifier.
Further, the application program interface conversion module includes, but is not limited to, the following conversion logic:
string [ n ], converting to X (n);
intelger, translates to 9 (n) or S9 (n) based on the translator identifier;
decimal [ m, n ], translates S9 (m-n) V9 (n) COMP-3 or S9 (m-n) V9 (n) or 9 (m-n) V9 (n) COMP-3 according to the translation identifier.
Further, the application architecture conversion module includes:
the identification part conversion unit is used for converting according to the grammar rules of the COBOL code identification part and comprises a program name, an author, a date, a program function description and an alteration history;
an ENVIRONMENT part conversion unit for converting according to the COBOL code ENVIRONMENT part grammar rule, and fixing the conversion unit as 'ENVIRONMENT DIVISION';
the data part conversion unit is used for converting according to the grammar rules of the COBOL code data part, and comprises conversion of a WORKING-STORAGE SECTION SECTION and a LINKAGE SECTION SECTION;
and the program part conversion unit is used for converting according to the grammar rules of the COBOL code program part, and comprises input and output parameter conversion, program segment conversion, internal service function call conversion, bottom layer platform component call conversion, conventional statement conversion and special statement conversion.
Further, the data portion conversion unit includes the following conversion logic:
the basic item variable is mapped and converted according to the grammar rule of the COBOL code data part;
combining item variables, defining the combined item variables into class member variables, and translating the class member variables according to COBOL code grammar rules;
constant, requiring variable default value attribute to achieve translation of COBOL code constant;
the reference variable is a variable defined by the LINKAGE SECTION SECTION and used for address reference, and the reference attribute of the variable is required to be set to be translated into the LINKAGE SECTION SECTION variable conforming to COBOL grammar;
further, the conversion logic of the program section conversion unit includes:
input-output parameter conversion: the program types are divided into online, batch, internal service functions and online report programs, and the input and output parameters of each type are different, but each type has a fixed parameter form, so the assembled development platform translator translates each type of program into corresponding input and output parameters according to the architecture rules of a bank system;
program segment conversion: translating the method members without return values into program segments of COBOL codes according to COBOL grammar specifications and banking system architecture rules;
internal service function call translation: translating the called application service program into a subroutine call of COBOL codes according to COBOL grammar specification and bank system architecture rules;
the underlying platform component invokes the translation: including database access transformations, file access transformations, error handling transformations, wherein:
database access: defining the addition, deletion, modification and check of the database as a set of class member methods, and translating the database into COBOL codes by a translator according to COBOL grammar specifications and banking system architecture rules;
file access conversion: defining the opening, reading and closing of the file as a set of class member methods, and translating the file into COBOL codes by a translator according to COBOL grammar specifications and bank system architecture rules;
error handling conversion: defining the program error capturing process as a set of class member methods, and translating the program error capturing process into COBOL codes by a translator according to COBOL grammar specifications and bank system architecture rules;
conventional sentence conversion: commonly used development controls, such as controls of assignment, branching, circulation, arithmetic operation, character operation and the like, are translated into corresponding COBOL codes according to COBOL grammar specifications;
special sentence conversion: the unsupported COBOL command needs to be expanded on the assembled development platform, corresponding controls or methods are added, and then the corresponding COBOL codes are translated according to the COBOL grammar specification.
The effects provided in the summary of the invention are merely effects of embodiments, not all effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
1) All data structures defined in the application program are defined first and then can be used, so that the consistency of the data in the data architecture and the application architecture is strictly controlled, the probability of data structure name input errors in the development process is reduced, and the development quality is improved;
2) Because the conversion module has defined conversion logic, new people can learn relatively simply, COBOL language experience can be omitted, and the conversion module can be developed by hands quickly after simple training, so that learning time and training cost are reduced;
3) The application method is simple, the conversion module is used for packaging the complex COBOL function module, the original code of 10 rows can be realized by only 1 control, and the development efficiency is greatly improved;
4) The program converted by the conversion module is graphical, and the readability is better than that of a text program.
Drawings
Fig. 1 is a block diagram of the overall principle of the device according to the invention.
Detailed Description
In order to clearly illustrate the technical features of the present solution, the present invention will be described in detail below with reference to the following detailed description and the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different structures of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted so as to not unnecessarily obscure the present invention.
As shown in fig. 1, the embodiment of the invention provides a rapid development device for a banking system, which comprises a database conversion module, an application program interface conversion module and an application architecture conversion module, wherein the application architecture conversion module comprises an identification part conversion unit, an environment part conversion unit, a data part conversion unit and a program part conversion unit.
In combination with the practical operation example, the functions implemented by the above modules are as follows:
1. database entity data definition conversion
By creating a database table meeting the relevant data management standards, according to COBOL grammar specification and bank system architecture rules, and converting the translation identifier into a COBOL table data structure definition file, the conversion rules of the data types are as follows:
1) string [ n ]: translated to X (n) or not according to the translator identifier. Wherein for the type translated into X (n), e.g. string [1], directly into X (1); for the type that is not translated: the 9-bit long field ending with B header X defaults to the secondary index column, and is not converted when converted to COBOL.
2) Decimal [ m, n ]: translated into S9 (m-n) V9 (n) COMP-3 or S9 (m-n) V9 (n) or 9 (m-n) V9 (n) COMP-3 or 9 (m-n) V9 (n) according to the translation identifier.
Wherein, the translation into S9 (m-n) V9 (n) COMP-3 is shown in the following table:
translation into S9 (m-n) V9 (n) is shown in the following table:
translation to 9 (m-n) V9 (n) COMP-3 is shown in the following table:
translation to 9 (m-n) V9 (n) is shown in the following table:
3) Decimal [ m,0]: translated into S9 (m) COMP-3 or 9 (m) COMP-3 based on the translation identifier.
Translation into S9 (m) COMP-3 is shown in the following table:
translation to 9 (m) COMP-3 is shown in the following table:
2. application program interface data definition conversion
The application program interface data definition mainly comprises an input interface, an output interface, a file interface, an internal service function interface, constants, a platform interface, other interfaces and the like, and the data definition is converted into a COBOL application interface data structure definition file according to COBOL grammar specification and bank system architecture rules and translation identifiers, wherein the conversion rules of data types are as follows:
1) string [ n ]: translation to X (n);
2) integer: translate to 9 (n) or S9 (n) based on the translator identifier;
translation to 9 (n) is shown in the following table:
translation to S9 (n) is shown in the following table:
3) Decimal [ m, n ]: translated into S9 (m-n) V9 (n) COMP-3 or S9 (m-n) V9 (n) or 9 (m-n) V9 (n) COMP-3 based on the translation identifier.
Translation into S9 (m-n) V9 (n) COMP-3 is shown in the following table:
translation into S9 (m-n) V9 (n) is shown in the following table:
translation to 9 (m-n) V9 (n) COMP-3 is shown in the following table:
3. application architecture conversion
1) Identification part conversion: the conversion is performed according to the grammar rules of the COBOL code identification part, and the conversion comprises program names, authors, dates, program function descriptions and change histories.
The specific conversion logic is as follows:
the "name" attribute value of the visualization PROGRAM is converted into a "PROGRAM name" (PROGRAM ID) of COBOL code;
the "creator staff identification" attribute value of the visualization program is converted into the "AUTHOR" of COBOL code (AUTHOR);
the first 8 bits of the "creation time" attribute value of the visualization program are converted to DATE of COBOL code (DATE-WRITTEN);
the "description" attribute value of the visualization program is converted into annotation information such as functional description and modification history of the COBOL code.
2) Environmental section conversion: the conversion is performed according to COBOL code ENVIRONMENT grammar rules, and is fixed as "ENVIRONMENT division".
3) Data section conversion: the conversion is performed according to COBOL code data part grammar rules, including conversion of a WORKING-STORAGE SECTION SECTION and a LINKAGE SECTION SECTION. Wherein the WORKING-STORAGE SECTION SECTION is used to define temporary variables, constants, and file structures used in COBOL programs, where constants are constant in value throughout the program lifecycle and values of variables vary as program logic changes; the "LINKAGE SECTION" SECTION is used to define a data structure for interaction with external programs, and can be understood as input and output parameters of the programs.
Wherein:
basic item variable: mapping and converting according to the grammar rules of the COBOL code data part; the specific conversion logic is as follows:
(1) the English names of the visualized program data members are converted into temporary variables of COBOL codes as they are;
(2) converting the Chinese name of the visualized program data member into comments of the COBOL code temporary variable;
(3) the data type conversion of the visualization program data members is as follows:
string [ n ]: translation to X (n);
integer: translate to 9 (n) or S9 (n) based on the translator identifier;
decimal [ m, n ]: translated into S9 (m-n) V9 (n) COMP-3 or S9 (m-n) V9 (n) or 9 (m-n) V9 (n) COMP-3 based on the translation identifier.
Combining term variables: the method comprises the steps of defining the variable into class member variables in an assembled development platform, and then translating the class member variables according to COBOL code grammar rules; the specific conversion logic is as follows:
(1) the base class name of the class member is converted into a 01 layer of COBOL code combination item variable;
(2) the subclass name or member of the class member is converted into the 05 layer of COBOL code combination item variable, the default increment step of the layer number is 5, and the value can be changed according to the flag bit;
(3) the grandchild name or member of the class member is converted into 10 layers of COBOL code combination item variable, the default increment step of layer number is 5, and the value can be changed according to the flag bit;
(4) similarly, the conversion of the multi-level combined item variable is realized.
Constant: a variable default value attribute is needed to realize translation of COBOL code constants; the specific conversion logic is as follows: when the DefaultValue attribute value of the visualization program data member is not null, the visualization program data member is converted into a constant of COBOL code.
Reference variable: the variable is defined by the LINKAGE SECTION SECTION and used for address reference, and the variable can be translated into the LINKAGE SECTION SECTION variable conforming to COBOL grammar after the reference attribute of the variable is set; the specific conversion logic is as follows: if the IsEmbedded attribute value of the visualized program data member is false, the visualized program data member is converted into a 'LINKAGE SECTION' SECTION variable of COBOL code.
4) Program section conversion: the program part conversion mainly comprises input and output parameter conversion, program segment conversion, internal service function call conversion, bottom layer platform component call conversion, conventional sentence conversion, special sentence conversion and the like. Wherein:
input-output parameter conversion: the program types are divided into online, batch, internal service functions and online report programs, and the input and output parameters of each type are different, but each type has a fixed parameter form, so the assembled development platform translator translates the program of each type into corresponding input and output parameters according to the architecture rules of the bank system.
The specific conversion logic of the online program is as follows: the "name" attribute value of the visualization program starts with G0 as the online program ("×" indicates any letter of a-Z), and the input/output parameters are fixedly converted into "USING APA-Area".
The specific conversion logic of the batch program is as follows: the "name" attribute values of the visualization program start with G and start with B as batch programs ("" x "indicates any one of the letters a-Z), and the input-output parameters are fixedly converted into" USING IOPCB-ADDR, AIF-AREA, SYS-AREA, BMP-AREA "".
The specific conversion logic of the internal service function program is as follows: the "name" attribute value of the visualization program starts with K or C as an internal service function program, and the input/output parameters are fixedly converted into "USING AIF-AREA, P (" "represents any letter or number").
The specific conversion logic of the online report program is as follows: the attribute value of name of visual program is input by using G-OP or G-OC as line report program (the letter of arbitrary A-Z is indicated by "")
The output parameters were fixedly converted to "USING IOPCB-ADDR, AIF-AREA, SYS-AREA, BMP-AREA, cmtrtrp.
Program segment conversion: and translating the method members without the return value into program segments of COBOL codes according to COBOL grammar specifications and banking system architecture rules. The specific conversion logic is as follows:
(1) the MAIN flow of the visualization program is converted into the "0000-MAIN-PROCESS-route" section of COBOL code.
(2) The method member of the visualization program is converted into the segment name of the COBOL code by the English name of the method member. The comments of the method members are converted into comments of the COBOL code segment names.
(3) Each program finally fixes the added error handling section "9999-MESSAGE-HANDLE-rtn.
(4) In addition to the link report program, other types of programs finally fix the add program END processing segment "9000-TXN-END-RTN".
Internal service function call translation: and the assembled development platform translates the called application service program into a subroutine call of COBOL codes according to COBOL grammar specification and banking system architecture rules. The specific conversion logic is as follows: application identification and parameter conversion of CallService component of visualization program into "CALL internal service function name USING AIF-AREA, parameter, SYS-AREA" of COBOL code "
The underlying platform component invokes the translation: the bottom platform components are some basic service programs of the bottom package of the bank system architecture, input parameters used by the program call need to follow a fixed format, and the programs mainly comprise database access, file access, error processing and the like, wherein:
database access: the method for adding, deleting, changing and checking the database is defined as a set of class member methods, and the translator translates into COBOL codes according to COBOL grammar specifications and banking system architecture rules.
Wherein the database added conversion logic is: the Insert method of the database table member of the visualization program is converted into the call of the GDBIMAIN database insertion function of the bottom layer platform data access interface of the COBOL bank system, and the converted style is as follows:
the conversion logic of the database deletion is: the Delete method of the database table member of the visualization program is converted into the call of the GDBIMAIN database deletion function of the COBOL bank system bottom layer platform data access interface, and the converted style is as follows:
the database modified conversion logic is: the Update method of the database table member of the visualization program is converted into the call of the GDBIMAIN database Update function of the COBOL bank system bottom layer platform data access interface, and the converted style is as follows:
the conversion logic of the database query is:
(1) the Select method of the database table member of the visualization program is converted into the call of the GDBIMAIN database read-only query function of the COBOL bank system bottom layer platform data access interface, and the converted style is as follows:
(2) the SelectWithLock method of the database table member of the visualization program is converted into the call of the GDBIMAIN database update read query function of the COBOL bank system bottom layer platform data access interface, and the converted style is as follows:
(3) the method for converting the cursor Read-only Read method of the database table members of the visualization program into the call of the GDBIMAIN database Read-only cursor query function of the bottom platform data access interface of the COBOL bank system, and the converted style is as follows:
(4) the method for updating and reading the Read according to the cursor of the database table member of the visualization program is converted into the call of the update and reading cursor inquiry function of the GDBIMAIN database of the bottom platform data access interface of the COBOL bank system, and the converted style is as follows:
(5) the database table members of the visualization program are converted into the call of the unique index query function of the GDBIMAIN database of the data access interface of the bottom platform of the COBOL banking system according to the unique index Select method, and the converted patterns are as follows:
(6) the method for inquiring Read by cursor index of database table members of the visualization program is converted into the call of the cursor index inquiring function of the GDBIMAIN database of the data access interface of the bottom platform of the COBOL banking system, and the converted style is as follows:
file access: the file opening, reading and closing are defined as a set of class member methods, and the translator translates into COBOL codes according to COBOL grammar specifications and banking system architecture rules.
The conversion logic of the opened file is as follows:
(1) the CreateFlow method (input file) of the file stream object of the visualization program is converted into a call of opening the function of the input file by a COBOL bank system bottom platform file access interface GFAIMAIN, and the converted style is as follows:
(2) the CreateFlow method (output file) of the file stream object of the visualization program is converted into a call of a COBOL bank system bottom platform file access interface GFAIMAIN to open the output file function, and the converted style is as follows:
(3) the CreateFlow method (input/output file) of the file stream object of the visualization program is converted into a call for opening the function of the input/output file by a COBOL bank system bottom platform file access interface GFAIMAIN, and the converted style is as follows:
(4) the CreateFlow method (APPEND mode) of the file stream object of the visualization program is converted into a call of opening a file function in an additional mode by a COBOL bank system bottom platform file access interface GFAIMAIN, and the converted style is as follows:
the conversion logic of the read file is:
(1) the ReadNext method of the file stream object of the visualization program is converted into the call of the file access interface GFAIMAIN circulation file reading function of the COBOL bank system bottom layer platform, and the converted style is as follows:
(2) the method for converting the file stream object of the visualization program into the call of the file access interface GFAIMAIN of the bottom platform of the COBOL bank system according to the KEY value Read method comprises the following steps:
the conversion logic of the closed file is: the Close method of the file stream object of the visualization program is converted into the call of the file function closing of the COBOL bank system bottom layer platform file access interface GFAIMAIN, and the converted style is as follows:
error handling: program error capturing processing is defined as a set of class member methods, and a translator translates COBOL codes according to COBOL grammar specifications and bank system architecture rules, and the specific conversion logic is as follows: the MESSAGE HANDLE method of the public memory area object of the visualization program is converted into a call of a COBOL bank system bottom layer platform error handling 'PERFORM 9999-MESSAGE-HANDLE-RTN' function, wherein an 'error CODE' parameter of the MESSAGE HANDLE is converted into a 'MOVE error CODE TO AIF-MSG-CODE'; the "error description" parameter of the MessageHandle is converted TO "MOVE error description TO AIF-MSG-TEXT".
Conventional sentence conversion: the assembled development platform translates commonly used development controls, such as controls for assignment, branching, circulation, arithmetic operation, character operation and the like, into corresponding COBOL codes according to COBOL grammar specifications. Wherein:
the conversion logic of the assignment is: "=" control is converted into MOVE assignment statement of COBOL code;
the conversion logic of the branch is: the Select control is converted into an IF branch statement of COBOL code;
the conversion logic of the loop is: the "Loop" control is converted into a PERFORM UNTIL Loop statement of COBOL code;
the conversion logic of the arithmetic operation is:
(1) the "+" control translates to a COMPUTE addition of COBOL code;
(2) the "-" control translates to a COMPUTE subtraction operation of COBOL code;
(3) a COMPUTE multiplication operation of converting the control into COBOL codes;
(4) the "/" control translates to a COMPUTE division operation of COBOL code.
Special sentence conversion: COBOL commands which are not supported by the assembled development platform are required to be expanded on the assembled development platform, corresponding controls or methods are added, and then the corresponding COBOL codes are translated according to COBOL grammar specifications. The conversion logic translated into SEARCH ALL statement is: the BinarySearch method of the visualization program extended_helper object translates into SEARCH ALL statements of COBOL code.
While the specification and drawings and examples have been described in detail, it will be understood by those skilled in the art that the invention may be modified or equivalents; all technical solutions and modifications thereof which do not depart from the spirit and scope of the invention are included in the protection scope of the invention.

Claims (4)

1. A rapid development device for banking systems, characterized in that said device comprises:
the database conversion module is used for creating a database table which accords with the relevant data management standard, and converting the database table into a COBOL table data structure definition file according to the COBOL grammar specification and the bank system architecture rule;
the application program interface conversion module is used for defining data of an input interface, an output interface, a file interface, an internal service function interface, constants, a platform interface and other interfaces, and converting the data into a COBOL table data structure definition file according to COBOL grammar specification and bank system architecture rules and a translation identifier;
the application architecture conversion module is used for converting the ADML program into a COBOL program conforming to the COBOL grammar specification and the bank system architecture rule;
the data conversion module includes, but is not limited to, the following conversion logic:
string [ n ], translate to X (n) or not translate according to the translator identifier;
decimal [ m, n ] is translated into S9 (m-n) V9 (n) COMP-3 or S9 (m-n) V9 (n) or 9 (m-n) V9 (n) COMP-3 or 9 (m-n) V9 (n) according to the translation identifier;
decimal [ m,0], translates into S9 (m) COMP-3 or 9 (m) COMP-3 based on the translation identifier;
the specific method for not translating string [ n ] is as follows: a field of 9 bits length ending with the beginning X of B is defaulted as a secondary index column, and conversion is not performed when the secondary index column is converted into COBOL;
the application program interface conversion module includes, but is not limited to, the following conversion logic:
string [ n ], converting to X (n);
intelger, translates to 9 (n) or S9 (n) based on the translator identifier;
decimal [ m, n ], translating S9 (m-n) V9 (n) COMP-3 or S9 (m-n) V9 (n) or 9 (m-n) V9 (n) COMP-3 according to the translation identifier;
the application architecture conversion module comprises:
the identification part conversion unit is used for converting according to the grammar rules of the COBOL code identification part and comprises a program name, an author, a date, a program function description and an alteration history;
an ENVIRONMENT part conversion unit for converting according to the COBOL code ENVIRONMENT part grammar rule, and fixing the conversion unit as 'ENVIRONMENT DIVISION';
the data part conversion unit is used for converting according to the grammar rules of the COBOL code data part, and comprises conversion of a WORKING-STORAGE SECTION SECTION and a LINKAGE SECTION SECTION;
and the program part conversion unit is used for converting according to the grammar rules of the COBOL code program part, and comprises input and output parameter conversion, program segment conversion, internal service function call conversion, bottom layer platform component call conversion, conventional statement conversion and special statement conversion.
2. The rapid development device for banking systems according to claim 1, characterized in that the data section conversion unit comprises the following conversion logic:
the basic item variable is mapped and converted according to the grammar rule of the COBOL code data part;
combining item variables, defining the item variables into class member variables, and then translating the class member variables according to COBOL code grammar rules;
constant, variable default value attribute to realize translation of COBOL code constant;
the reference variable can be translated into a 'LINKAGE SECTION' SECTION variable conforming to COBOL grammar after the reference attribute of the variable is set.
3. The rapid development device for banking systems according to claim 1, wherein the conversion logic of the program section conversion unit comprises:
input-output parameter conversion: the online, batch, internal service function and online report program are included;
program segment conversion: translating the method members without return values into program segments of COBOL codes according to COBOL grammar specifications and banking system architecture rules;
internal service function call translation: translating the called application service program into a subroutine call of COBOL codes according to COBOL grammar specification and bank system architecture rules;
the underlying platform component invokes the translation: including database access transformations, file access transformations, and error handling transformations.
4. The rapid development apparatus for banking systems of claim 3, wherein the specific conversion logic of the underlying platform component call conversion comprises:
database access: defining the addition, deletion, modification and check of the database as a set of class member methods, and translating the database into COBOL codes by a translator according to COBOL grammar specifications and banking system architecture rules;
file access conversion: defining the opening, reading and closing of the file as a set of class member methods, and translating the file into COBOL codes by a translator according to COBOL grammar specifications and bank system architecture rules;
error handling conversion: defining the program error capturing process as a set of class member methods, and translating the program error capturing process into COBOL codes by a translator according to COBOL grammar specifications and bank system architecture rules;
conventional sentence conversion: commonly used development controls, such as controls of assignment, branching, circulation, arithmetic operation, character operation and the like, are translated into corresponding COBOL codes according to COBOL grammar specifications;
special sentence conversion: the unsupported COBOL command needs to be expanded on the assembled development platform, corresponding controls or methods are added, and then the corresponding COBOL codes are translated according to the COBOL grammar specification.
CN202110389421.8A 2021-04-12 2021-04-12 Rapid development device for banking system Active CN113157257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110389421.8A CN113157257B (en) 2021-04-12 2021-04-12 Rapid development device for banking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110389421.8A CN113157257B (en) 2021-04-12 2021-04-12 Rapid development device for banking system

Publications (2)

Publication Number Publication Date
CN113157257A CN113157257A (en) 2021-07-23
CN113157257B true CN113157257B (en) 2024-03-29

Family

ID=76889945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110389421.8A Active CN113157257B (en) 2021-04-12 2021-04-12 Rapid development device for banking system

Country Status (1)

Country Link
CN (1) CN113157257B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001033387A2 (en) * 1999-10-29 2001-05-10 Liberty Integration Software, Inc. Apparatus, systems and methods for electronic data development, management, control and integration in a global communications network environment
CN102929680A (en) * 2012-10-19 2013-02-13 普华基础软件股份有限公司 Method, device and system for converting a testing and test control notation version 3 (TTCN-3) script into a Java source code
CN105793818A (en) * 2013-12-06 2016-07-20 起元科技有限公司 Source code translation
CN107861728A (en) * 2017-10-25 2018-03-30 深圳四方精创资讯股份有限公司 Method from traditional program language to modern procedures language conversion and its system for
CN111708539A (en) * 2020-06-17 2020-09-25 腾讯科技(深圳)有限公司 Application program code conversion method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060031820A1 (en) * 2004-08-09 2006-02-09 Aizhong Li Method for program transformation and apparatus for COBOL to Java program transformation
US20080306986A1 (en) * 2007-06-08 2008-12-11 Accenture Global Services Gmbh Migration of Legacy Applications
CA2908130C (en) * 2013-03-27 2020-07-21 Netfective Technology Sa Method for transforming first code instructions in a first programming language into second code instructions in a second programming language

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001033387A2 (en) * 1999-10-29 2001-05-10 Liberty Integration Software, Inc. Apparatus, systems and methods for electronic data development, management, control and integration in a global communications network environment
CN102929680A (en) * 2012-10-19 2013-02-13 普华基础软件股份有限公司 Method, device and system for converting a testing and test control notation version 3 (TTCN-3) script into a Java source code
CN105793818A (en) * 2013-12-06 2016-07-20 起元科技有限公司 Source code translation
CN107861728A (en) * 2017-10-25 2018-03-30 深圳四方精创资讯股份有限公司 Method from traditional program language to modern procedures language conversion and its system for
CN111708539A (en) * 2020-06-17 2020-09-25 腾讯科技(深圳)有限公司 Application program code conversion method and device, electronic equipment and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
COBOL系统到Java环境自动化转换过程中的符号系统研究;曲国铖;《中国优秀硕士学位论文全文数据库(信息科技辑)》(第01期);I138-114 *
Extracting business rules from COBOL: A model-based framework;Valerio Cosentino等;《2013 20th Working Conference on Reverse Engineering (WCRE)》;409-416 *
基于JavaEE的COBOL程序分析系统设计与实现;石帅华;《中国优秀硕士学位论文全文数据库(信息科技辑)》(第03期);I138-2695 *
基于Object-Z的UML类图形式化及Python代码生成研究;袁鼎;《中国优秀硕士学位论文全文数据库(信息科技辑)》(第01期);I138-825 *

Also Published As

Publication number Publication date
CN113157257A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN111708539B (en) Application program code conversion method and device, electronic equipment and storage medium
CN112149399B (en) Table information extraction method, device, equipment and medium based on RPA and AI
US5339434A (en) Heterogeneous data translation system
US6400287B1 (en) Data structure for creating, scoping, and converting to unicode data from single byte character sets, double byte character sets, or mixed character sets comprising both single byte and double byte character sets
US20140156282A1 (en) Method and system for controlling target applications based upon a natural language command string
CN112235311B (en) OVSDB client code automatic generation method, system, device and medium
CN113609838B (en) Document information extraction and mapping method and system
CN113297251A (en) Multi-source data retrieval method, device, equipment and storage medium
CN113918512A (en) Power grid operation rule knowledge graph construction system and method
CN115202626A (en) Low-code front-end development method supporting multi-technology stack components
US7051278B1 (en) Method of, system for, and computer program product for scoping the conversion of unicode data from single byte character sets, double byte character sets, or mixed character sets comprising both single byte and double byte character sets
CN112764762A (en) Method and system for automatically converting standard text into computable logic rule
CN111831624A (en) Data table creating method and device, computer equipment and storage medium
CN112506488A (en) Method for generating programming language class based on sql creating statement
CN113608748B (en) Data processing method, device and equipment for converting C language into Java language
CN117608656A (en) Mixed front end frame migration method based on AST and LLM
CN111124422B (en) EOS intelligent contract language conversion method based on abstract syntax tree
CN113157257B (en) Rapid development device for banking system
Rajbhoj et al. DocToModel: automated authoring of models from diverse requirements specification documents
CN114089980A (en) Programming processing method, device, interpreter and nonvolatile storage medium
CN104641367A (en) Formatting module, system and method for formatting an electronic character sequence
Bachut et al. Software tools for the environment of a computer aided translation system
CN113918165A (en) Method and system for compiling text description type flow description into application automatic operation script
CN112965909A (en) Test data, test case generation method and system, and storage medium
Falkenstine et al. Natural Language Processing for Autonomous Identification of Impactful Changes to Specification Documents

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