Previous Topic

Next Topic

Book Contents

Book Index

Using set tags

The set tag value is used to pass data between jobs in a job set. The first job in a job set that gets initiated will either pick up the set tag value from the initiate operation or from the job tag value in the control file.

For example, we have a series of jobs (MONTHLY, DAILY and REPORT, each job initiates the next in this order). The MONTHLY job when completed initiates DAILY. DAILY then initiates REPORT. In the REPORT job it is important to be able to identify which job came first (either MONTHLY or DAILY). This is easily done by establishing a default tag values for each job in the following fashion.

C:\> schedule modify monthly/general=job_tag:"MONTHLY"

C:\> schedule modify daily/general=job_tag:"DAILY"

In the REPORT job a check of the tag value can be made to determine how the set was started.

C:\> if schedule_set_tag .eqs. "MONTHLY" then goto extra_stuff

C:\>!

.

.

C:\>extra_stuff:

See Also

Job sets

Using set parameters

Using set ids