Pass UserStatus from underlying sequence 2 calling sequence
Posted: Wed Mar 30, 2011 4:37 am
Hi,
I have a master_seq which call an underlying source_seq which in turn calls a piece of JCL code which executes a command line to source data. The JCL job sets the user status to one of 3: success, failed, nothingnew(if now new files were generated for a certain time period).
In the source_seq job - which calls the JCL job - I can set the userstatus from the underlying JCL job in the triggers of the calling source_seq job to success|failed|nohtingnew and the flow will follow the respective link.
I get all of the above to work perfectly fine but my challenge is:
How do I pass the user status from the source_seq - which i received from the JCL job - to the master_seq. Or how do i set the user status in a sequence job and pass it to the calling sequence job.
master_seq -------> source_seq ------> JCL job
TIA.
Faeez
I have a master_seq which call an underlying source_seq which in turn calls a piece of JCL code which executes a command line to source data. The JCL job sets the user status to one of 3: success, failed, nothingnew(if now new files were generated for a certain time period).
In the source_seq job - which calls the JCL job - I can set the userstatus from the underlying JCL job in the triggers of the calling source_seq job to success|failed|nohtingnew and the flow will follow the respective link.
I get all of the above to work perfectly fine but my challenge is:
How do I pass the user status from the source_seq - which i received from the JCL job - to the master_seq. Or how do i set the user status in a sequence job and pass it to the calling sequence job.
master_seq -------> source_seq ------> JCL job
TIA.
Faeez