Program code generation method, tightly combined with program production and based on new media business

The invention relates to the media program production technology, and particularly relates to a program code generation method which is tightly combined with program production and based on new media business. When the method is used to perform a media program subject selection, an effective program code is distributed for each subject selection. A production system acquires a production task which contains effective program code information to make a program. After the program production is completed, the finished program is bound with the effective program code and primary cataloguing is performed on the program. According to the basic information of the program, the effective program code is converted into the final program code. In the invention, a concept of the effective program code is introduced, which makes an application of the program code run through the whole program production and the broadcast process. The effective program code can be converted into the final program code with the confirmation of the basic information of the program, which makes the later program broadcast or a transaction can be only confirmed according to the program code so that scientific management of the media program can be realized.