When the sort terminates, returning control to the calling program, it places a return
code in Register 15:
0 |
indicates normal termination; |
16 |
indicates an unsuccessful sort. |
The calling program typically tests the contents of Register 15, branching to the normal-sort or sort-error end of job routine.
The following examples demonstrate how to code an extended parameter list. In this example, all exits reside below the 16-megabyte line and should be called with 24-bit AMODE set, except the E35 exit, which should be called with 31-bit AMODE set.
Figure 1. Sample Invoked Sort with Both 24-bit AMODE & 31-bit AMODE Set
This next example demonstrates how to code an extended parameter list in which all exits reside above the 16-megabyte line and should be called with AMODE 31 set.
Figure 2. Sample Invoked Sort with 31-bit AMODE Set