Does anyone have any good ideas on the best way to politely terminate an emml script?
I'm just working on a new script and as always I think it's a good idea to check what "garbage" we're getting in before charging off to do something.
In a couple of other emml scripts I've wrapped the post-error check code in an <else> and crafted a special instance of the output to deliver an error message to the caller, but I got to thinking, wouldn't it be nice is there was an <abend message="you idiot" outputvariable="idiotReturn" /> which I could use instead. Something like:
<if condition="$input = 'gooddata'">
.... do something
<else>
<abend message="Sorry but thats rubbish" outputvariable="someDocument" />
</else>
</if>
What are others doing to end processing mid-emml when it doesn't make sense to continue?
Hi mashers,
Does anyone have any good ideas on the best way to politely terminate an emml script?
I'm just working on a new script and as always I think it's a good idea to check what "garbage" we're getting in before charging off to do something.
In a couple of other emml scripts I've wrapped the post-error check code in an <else> and crafted a special instance of the output to deliver an error message to the caller, but I got to thinking, wouldn't it be nice is there was an <abend message="you idiot" outputvariable="idiotReturn" /> which I could use instead. Something like:
<if condition="$input = 'gooddata'">
.... do something
<else>
<abend message="Sorry but thats rubbish" outputvariable="someDocument" />
</else>
</if>
What are others doing to end processing mid-emml when it doesn't make sense to continue?
Cheers, Innes