I am in the process of automating an Aspect Script. I am using an outside scheduling tool (Tivoli Workload Scheduler) and have gotten the scheduler to kick off the script and complete the upload of a file successfully. My question is how can I pass return codes from the script to the scheduler to determine if the upload was successful or unsuccessful.
The only examples for various errors are to use user messages. Since the script needs to be fully automated a user message will not be of help. Is there a way to pass a return code?
Examples of errors:
Transmission failed
Connection failed (wrong password or phone number)
No file to transfer
With this errors how can I exit out of the script and exit out of ProComm successfully but at the same time let the scheduler know that the transmission failed with one of the above errors?
Also, the connection log within ProComm is very limited in the details it provides. Is there a way to have this log state the reasons for the failed transmission (even if the script has successfully exited)? Is there another log I could use?
The only examples for various errors are to use user messages. Since the script needs to be fully automated a user message will not be of help. Is there a way to pass a return code?
Examples of errors:
Transmission failed
Connection failed (wrong password or phone number)
No file to transfer
With this errors how can I exit out of the script and exit out of ProComm successfully but at the same time let the scheduler know that the transmission failed with one of the above errors?
Also, the connection log within ProComm is very limited in the details it provides. Is there a way to have this log state the reasons for the failed transmission (even if the script has successfully exited)? Is there another log I could use?