Currency

The system generation compiler uses currency to determine:
idms19
The system generation compiler uses currency to determine:
  • The system with which a component entity is associated
  • The line with which a physical terminal is associated
  • The physical terminal with which a logical terminal is associated
Accordingly, the compiler maintains currency for systems, lines, and physical terminals.
System Currency
System currency is established by an ADD, MODIFY, DISPLAY, or PUNCH SYSTEM statement. Until you submit one of these statements to the compiler, no system is current.  After getting current on the system, if ungenerated entity changes exist, the compiler displays the following message: DC601273 UNGENERATED CHANGES - ISSUE "DISPLAY CHANGES" TO VIEW. For more information about the DISPLAY CHANGES commands, see "Display Parameters." 
System currency is the only way to associate an entity with a system. You must establish system currency before you can add, modify, delete, display, or punch component entities.
System currency changes each time the compiler processes an ADD, MODIFY, DISPLAY, or PUNCH SYSTEM statement for a different system. No system is current after the compiler processes a DELETE SYSTEM statement.
All statements that you submit to add or delete component entities apply to the current system. For example, to add program MYPROG to system 12, you must first make system 12 current:
MODIFY SYSTEM 12. ADD PROGRAM MYPROG.
Line Currency
Line currency is established by an ADD, MODIFY, DISPLAY, or PUNCH LINE statement. Until you submit one of these statements to the compiler, no line is current.
Line currency changes each time the compiler processes an ADD, MODIFY, DISPLAY, or PUNCH LINE statement for a different line. No line is current after the compiler processes a DELETE LINE statement.
Statements that you submit to add or delete a physical terminal apply to the current line. For example, to add physical terminal PT001 to line L001, you must first make line L001 current:
MODIFY LINE L001. ADD PTERM PT001.
You can override line currency for a specific physical terminal by including the IN LINE parameter in the PTERM statement.
Physical Terminal Currency
Physical terminal currency is established by an ADD, MODIFY, DISPLAY, or PUNCH PTERM statement. Until you submit one of these statements to the compiler, no physical terminal is current.
Physical terminal currency changes each time the compiler processes an ADD, MODIFY, DISPLAY, or PUNCH PTERM statement for a different physical terminal. No physical terminal is current after the compiler processes a DELETE PTERM statement.
Statements that you submit to add or delete a logical terminal apply to the current physical terminal. For example, to associate logical terminal LT001 with physical terminal PT001, you must first make physical terminal PT001 current:
MODIFY PTERM PT001. ADD LTERM LT001.
You can override physical terminal currency for a specific logical terminal by including the PTERM parameter in the LTERM statement.