set heading off;
set feedback off;
remark Following removes blank lines from output.
set pagesize 0;
set verify off;
spool jobsets_of_prodphycdf07;
select 
 process_run, jobset 
from
 used_sets, passcalibs 
where 
passcalibs.pass_index = 
(select pass_index from passes where process_name = 'PROD_PHYSICS_CDF' and passname = '&1' and retired is null)
and passcalibs.lorun = &2 and used_sets.process_run = &2 and
passcalibs.proc_calib_version = used_sets.proc_calib_version and used_sets.process_name =
'PROD_PHYSICS_CDF';
quit;
