- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
ksc_exit_status
Hi,
Ksc_exit_status, if it's value is returned as "1', it stops further execution.
Is this possible to control output value of "ksc_exit_staus"? My purpose is to continnue the execution of next commands after getting ksc_exit_status as "1".
Thanks in advance for suggestions.
Regards

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: ksc_exit_status
Hello Ankita,
Hope you are doing fine, my name is Bryan Trejos and I will assist you on this thread.
-This is how the ksc_exit_status works:
The ksc_exit_status will be 0 once the work of any command is done.
The ksc_exit_status will be 1 in case that the command fail to do its job. So this works as per design of PPM.
There is no way we can control the command ksc_exit_status, as per design if any special command fail the next command shouldn’t be execute since it could cause like a snowball with many errors.
Please let me know if you have further questions.
Thanks and Best Regards,
Bryan Trejos F.


- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: ksc_exit_status
Hi there,
you cannot apply any logic after ksc_exit as it will break the execution. The routing logic can be implemented using if, then commands within; e.g. if [ -d ""[RP.REPORT_SUBMISSION_ID]"" ]; then rm -R [RP.REPORT_SUBMISSION_ID]; fi
In above eg, we are checkign if report folder is present, if so, then delete it.
other possible options are to use ksc_set, ksc_store to hold values of your execution and then route accordingly.
Hope this helps.
Ajay Mishra