Page 1 of 1

Reading Parameters from a file

Posted: Wed Jul 22, 2009 12:07 pm
by ragasambath
Dear Members,

The requirement is to read the parameters defined in file and pass it to the sequence

Can you please suggest a possible solution

Thanks in advance

Posted: Wed Jul 22, 2009 12:50 pm
by dsuser_cai
You can use a routine to read parameters from a file and pass it to the sequence. This is how we do it.

Posted: Wed Jul 22, 2009 3:09 pm
by kduke
You have to do it in job control or a shell script. You need to read the parameter values then run the first sequence or run this job to run the real job. The reason is you cannot change parameter values after a job starts. So this job would need the real job name as a parameter and maybe the filename in which the parameter values are stored.

Posted: Wed Jul 22, 2009 3:36 pm
by chulett
Or you may be able to read them in inside the Sequence job if the Sequence job itself doesn't need them, just the activities that it runs. For example, something like what was discussed here.

However. much cleaner to do this at the job control / script 'wrapper' level.

Posted: Wed Jul 22, 2009 8:53 pm
by kduke
I would only recommend that for a small number of variables. This is more tedious than doing it in job control.

Posted: Wed Jul 22, 2009 9:05 pm
by chulett
Agreed.

Posted: Thu Jul 23, 2009 4:55 am
by sajidkp
Use command stage and activity variables in sequencer