In the analysis and design of information systems, computer-based simulation models are often used as cost-effective alternatives to mathematical system analysis approaches due to the high complexity of the systems. However, the process of developing a correct simulation program is a difficult and time-consuming task, even in specialized simulation languages. In order to reduce development time, to reduce requirements for knowledge of simulation methodology and programming language, and also to increase program standardization, an automatic code generation system was developed and implemented. This code generation process is based on a Petri net model of the information system, from which simulation programs in the target language GPSS are automatically produced. Automation of the code generation process required the adoption of certain conventions for Petri net models and the adoption of a tabular internal computer representation. We describe the design decisions that were made in order to implement a working system. Extensions to the development of automatic code generation systems into other target languages are also discussed.