Hi,
I have coded multiple ISREDIT command macros which needs to be run one after another. I am executing the macros by using the command below.
"ISPEXEC EDIT DATASET('TEST.TEST.PDS(TEST1)') MACRO(SF)"
Here I am executing the marco SF. Similar to this I have coded multiple macros as per requirement.Now I want to integrate all the mcros to a single macro based on the condition.
Lets say for example macro are SF,SG,SK,SL.
Now I want to execute then in sequence and if any of the macro fails then prceding macros should not be executed and it should exit. Suppose SF macro checks for the jobcard if it is correct then only macro SG will be executed orelse the whole macro should exit without executing further(no execution of SG,SK,SL macros).
Can anybody suggest how to achieve this condition in macros.
Thanks,
Chinkump