contents.gifindex.gifprev1.gifnext1.gif

2.12.2.2 Code sharing on AOS/VS

Use your runtime configuration file to indicate which AOS/VS programs you want to share code. The default for SHARED-CODE on AOS/VS is 1--this means all programs will share code. To turn off shared code for all of your programs, add the following line:

SHARED-CODE 0

You may share code for particular programs using entries in your runtime configuration file. To do this, specify each program you want to share code as follows:

SHARED-CODE Program1

SHARED-CODE Program2

SHARED-CODE Program3

When you are using this method, "Program1", "Program2", and so forth, specify the PROGRAM-IDs from the programs' Identification Divisions (note that a program's object file name is not used). If you use this method, setting SHARED-CODE to "0" will have no effect.