Schema
> Products
> SRTransport
> Doc
> SRTransportES
> Status
On completion, SRTransportES (srtransport) returns a status code that can be interpreted by your scripts or by a calling program (such as a scheduling application).
The status codes are:
Additionally, the processing 4gl code within the transport can terminate SRTransport with an application specific status code.
run preprocessing:
if xxx > 1000000
exit 17
Here is an example of a shell script that handles srtransport's return status.
#!/bin/sh
srtransport -t abc.transport
status=$?
if [ $status = 2 ]; then
echo "SRTransport: Transport incomplete."
exit 2 # kill this script
else if [ $status = 1 ]; then
echo "SRTransport: some rows were rejected."
else if [ $status = 17 ]; then
echo "SRTransport: abort on business logic"
fi
# continue processing