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