29 Understand Source Sequence

This chapter contains these topics:

When you use the program generator, it is important that you understand how the system manages the source code in the program. The topics in this chapter include the key elements that the system assigns.

29.1 Source Serial Numbers

When the program generator creates a new program, it assigns each line of source code within the program a twelve-digit serial number. If you regenerate a program after making changes, the program generator uses the serial numbers to integrate your changes, and then renumbers the entire source.

29.2 Source Sequence Line Structure

The source sequence line structure includes six elements:

Element Description
Primary Key The primary key represents source code lines that come from a Primary Logic Module. The primary key begins in column 80.
Secondary Key The secondary key represents the source code lines that come from a Detail Logic module. The secondary key begins in column 90.
Serial Number The serial number is a 12-digit number the program generator assigns to each line of source code in a program. The serial number begins in column 100.
User ID When the program generator creates a program, it places the User ID of the program's creator within the source sequence line.
SAR Number When the program generator creates a program, it places the SAR Number, if available, within the source sequence line.
Date Last Change When the program generator creates a program, it places the date you add or change the code within the source sequence line.

The following illustrates the parts of the source sequence line.

Figure 29-1 Parts of the Source Sequence Line

Description of Figure 29-1 follows
Description of "Figure 29-1 Parts of the Source Sequence Line"

The Primary and Secondary keys and serial number make up a unique key for each line of code.

29.3 Structure of the Serial Number

Figure 29-2 Structure of the Serial Number

Description of Figure 29-2 follows
Description of "Figure 29-2 Structure of the Serial Number"

29.3.1 Source Inventory Master File (F93001) - XXXX

  • Assigns numbers to the first sequence of the serial number.

  • Increments by 10 to allow you to insert lines as the Program Generator Source Inventory Master file changes.

  • Allows a maximum of 9999 lines.

29.3.2 Generation Execution - YYYY

  • Assigns numbers when the system generates the program.

  • Represents lines that are part of a detail logic module.

  • Increments by 10 to allow you to insert lines.

  • Allows a maximum of 9999 lines.

29.3.3 User Change in SEU - ZZZZ

  • Represent lines of code that the user inserts via SEU.

  • Allows a maximum of 9999 lines.