Understanding Preprocessor input

The input to the Preprocessor consists of network definition statements, which can be a sequential data set or a member of a partitioned data set, and message generation decks. When preprocessing a network, place the network definition in the input data stream first, followed by the message generation decks. If a member containing a specific message generation deck already exists in the data set specified by the MSGDD DD statement and does not need to be modified, you do not need to include that message deck in the data stream for the Preprocessor. If the network definition already exists in the INITDD DD data set and does not need to be modified, you can use the PREP statement in the input data stream instead of repeating the network definition. Refer to Figure 1 for an example of using the PREP statement.

You can include multiple networks in the input stream to be preprocessed during a single Preprocessor run. Include the message generation decks required by these multiple networks in the input stream unless the message generation decks exist in the MSGDD data set. For more information about the syntax of the statements used as input to the Preprocessor, refer to WSim Script Guide and Reference.

The PREP statement, which is valid only for the Preprocessor, has the following format:
netname   PREP
where netname is the name of the member from the INITDD data set that is to be preprocessed. If a message generation deck is required by a NTWRK or a PREP statement but is not in the MSGDD DD, you must include it before the next NTWRK or PREP statement. You can code more than one PREP statement. You can also mix the PREP statements with the WSim network definition statements, as shown in Figure 1.
Figure 1. Example of Preprocessor input with the PREP statement
TEST1    PREP        BEGIN NETWORK 1 DEFINITION
TEST2    PREP        BEGIN NETWORK 2 DEFINITION
DECK1    MSGTXT
         .
         .
         .
         ENDTXT
TEST3    NTWRK       BEGIN NETWORK 3 DEFINITION
         .
         .
         .

         VTAMAPPL
         LU
         
         .
         .
         .
DECK2    MSGTXT
         .
         .
         .
         ENDTXT
TEST4    PREP        BEGIN NETWORK 4 DEFINITION