In ECRTP 4.2, for inbound compliance maps only, the -nret switch adds return codes that provide additional information to the calling program. Based on the return value, you can determine the next step in the process. The return codes reflect the following information:
At least one interchange is in error, implying a TA1 map should be run.
At least one group or transaction is in error, implying a 997 map should be run.
At least one good transaction is present, implying a translation map should be run.
ECRTP returns a code based on these conditions, and may trigger other processes. A given return code may, for example, indicate that TA1, 997, and transformation maps should be run.
Inbound compliance maps.
4.2
The syntax for this switch is:
-nret
Adding the return codes in Windows
Open the Run Inbound Map window.
Click the Option 1 tab.
Select Enhanced Return Codes.
This list specifies the return codes and identifies the codes that should trigger the TA1, 997 or translation maps:
Return code 16 – ECRTP aborted processing.
Return code 8 – a map abort occurred.
Return codes 4, 5, 6, or 7 – indicates a TA1 acknowledgement map should be run because there was at least one interchange level error.
Return codes 2, 3, 6, or 7 – indicates a 997 acknowledgement map should be run because there was at least one group or transaction level error.
Return codes 1, 3, 5, or 7 – indicates a translation map should be run because there was at least one good transaction.