The invention relates to a method and a
system for converting a traditional program language into a modern program language. The method comprises the following steps that: obtaining a
COBOL (Common Business-Oriented Language)
source code which needs to be converted and a corresponding configuration rule; generating the
COBOL source code into a corresponding
JAVA source code according to the corresponding configuration rule; and configuring a basic environment for the
JAVA source code. By use of the method, a configuration file is loaded, the
COBOL source code which needs to be converted is converted into the
JAVA source code, an SDK (
Software Development Kit) is used by aiming at the converted JAVA source code to carry out
data type packaging and the basic environment configuration of a method interface, a basic platform is adopted to carry out
online transaction processing, COBOL grammar conversion is comprehensively supported, program language accuracy before conversion is kept, theredirecting and the pointer assignment
processing of the COOL are truly realized, practical operation efficiency is high after conversion,
maintainability is good, and maintenance cost can be lowered.