The set parameter is used to pass information between jobs. For example, we have set up a series of three jobs (JOB1, JOB2 and JOB3 each initiates the next job) that process a given data file into a report. To start up the series and send along the file name use a command of the following format:
C:\> schedule submit job1/set_parameter="DATAFILE1.DAT"/initiates
The /initiates qualifier is present so that all initiate jobs will be triggered on completion. (The default behavior of the submit command is to just run the one job independently of all interconnections.)
The first job (JOB1) reads and processes the input data file and generates an output file which is then processed by the second job (JOB2). The commands for the first job (JOB1) would look something like the following.
C:\> define input_file 'schedule_set_parameter'
C:\> run process_data_program
C:\>REM
C:\>REM pass the data to job2
C:\>REM
C:\> schedule modify/queue/entry='schedule_entry'-
/set_parameter="output.dat"