If a processor is located in STG1 and STG2 which processor gets executed?

Document ID : KB000048593
Last Modified Date : 14/02/2018
Show Technical Document Details

Solution:

Question:
If a processor is located in STG1 and STG2 which processor gets executed?

Answer:
First we look in type PROCESS Stg1 LOADLIB that is defined in the System Definition.
If the processor is found in the STG1 LOADLIB it gets executed from there.
If it is not found in the STG1 LOADLIB we look in the STG2 LOADLIB and executes the processor from there.
If the PROCESSOR is not found in the STG1 or STG2 LOADLIB then an error message is issue stating that the processor does not exist.


DISPLAY -------------------- SYSTEM DEFINITION ---------------------
COMMAND ===>                                                        
                                                                    
CURRENT ENV:  ENV1             NEXT    ENV:  ENV2                   
SYSTEM:       PYVES            NEXT SYSTEM:  PYVES                  
TITLE:        PRB TEST SYSTEM                                       
UPDATED:      11SEP13 13:34    BY FEEEL01                           
GENERAL OPTIONS:                                                    
   COMMENT:     N (Y/N)    CCID:     N (Y/N) REQ ELM JUMP ACK:    Y
AUTO AGE LEVEL RETENTION OPTIONS:                                   
  ELEMENT:     N (Y/N)      RETAIN LVLS FOR:   0   MONTHS           
  COMPONENT:   N (Y/N)      RETAIN LVLS FOR:   0   MONTHS           
ELEMENT REGISTRATION CHECK OPTIONS:                                 
  DUP ELEMENT NAME:     N (Y/N)                         MSG LVL:   
  DUP PROC O/P TYP:     N (Y/N)  ACROSS SBS:   N (Y/N)  MSG LVL:   
SIGN-IN/SIGN-OUT OPTIONS:                 LAST SYSTEM BACKUP:       
  ACTIVATE OPTION:          Y (Y/N)         DATE:                   
  VALIDATE DATA SET:        Y (Y/N)         TIME:                   
PROCESSOR TRANSLATION OUTPUT LIBRARIES:                             
  STAGE 1 LOAD LIBRARY:     PUBLIC.PYVES.STG1.LOADLIB               
  STAGE 1 LIST LIBRARY:                                             
  STAGE 2 LOAD LIBRARY:     PUBLIC.PYVES.STG2.LOADLIB               
  STAGE 2 LIST LIBRARY:                                             
                                                                    
 
These fields contain the names of the processor load and list library the system 
the system.                                                       
                                                                  
+--------------------+------------------------------------------+ 
l Field              l Description                              l 
+--------------------+------------------------------------------+ 
l Stage 1 Load       l Name of the Stage 1 processor load       l 
l Library            l library for this system.  This load      l 
l                    l library must be different from the load  l 
l                    l library for Stage 2.                     l 
+--------------------+------------------------------------------+ 
l Stage 1 List       l Name of the Stage 1 processor listing    l 
l Library            l library for this system.  This listing   l 
l                    l library must be different from the load  l 
l                    l library for Stage 2.                     l 
+--------------------+------------------------------------------+ 
l Stage 2 Load       l Name of the Stage 2 processor load       l 
l Library            l library for this system.  If this load   l 
l                    l library is the same as the load library  l 
l                    l for Stage 1, Endevor issues a warning    l 
l                    l message.                                 l 
+--------------------+------------------------------------------+ 
l Stage 2 List       l Name of the Stage 2 processor listing    l 
l Library            l library for this system.  If this        l 
l                    l listing library is the same as the       l 
l                    l listing library for Stage 1, Endevor     l 
l                    l issues a warning message.                l           
+--------------------+------------------------------------------+           
                                                                            
Note:  Regardless of the stage where a PROCESSOR resides, Endevor searches   
       first in the Stage 1 load library, then in the Stage 2 load library  
       for a processor to execute against the element.