I usually perform such tasks using a SELECT statement.
A starting point is something like
select 'alter job definition ' as col1, id, 'with run program = ''' as col3, some_expression_that_modifies_the_run_program_according_to_your_requirements() as col4, ''';' as col5
where run_program like '%p__web%01,p__web%02%'
with id job quoted;
This statement (with a few corrections of course) executed in the shell will output a number of rows.
If you select them and paste them into the shell again, you can do the bulk update.
(and a good practice is to execute a single line first in order to check if this indeed does what you'd like it to do.
Note the column aliases (as col1, as col3, ...). They are not always required, but it is good practice.
Some database systems are very creative in generating column headers. So creative that it sometimes confuses the GUI or even the server.
In that case the statement mysteriously refuses to work.
Furthermore you can use
/* bunch of statements */
END MULTICOMMAND ROLLBACK;
to check if your list of statements would execute without errors.
If the system reports that the statement has been rolled back on the user's request, it would work.
Any other error message indicates a problem.