Hi,
Do we have any Alternatives to 'INCLUDE=MEMBER' statement that can be used in JCL to pass dataset names dynamically? Here is my problem.
I trigger a job to read IMS log files whenever an IMS log dataset is created. This job could run anywhere from 60 to 100 times in a day depending on how many IMS log datasets are created on any given day.
In Step1, I run IDCAMS to extract specific cataloged datasets and isolate the latest dataset and store it in a PDS member named 'XXXX' to be used as an INCLUDE MEMBER.
In Step2, I use INCLUDE MEMBER=XXXX in the place of INPUT DD statement to read that IMS log dataset and create an output dataset by just changing the HLQ of the original IMS log file.
What happens is the IMS log dataset name from the current execution of job gets stored in XXXX member but is only passed to the Job in the next run. This is causing problems some times when my job gets triggered but do not run immediately. Due to this some jobs try to read the same log file and create the same output dataset and fail.
Are there any Alternatives to INCLUDE=MEMBER statement? How can we pass the same log dataset name to another step as INPUT in the same execution of job without using INCLUDE statement?
Any help is greatly appreciated.