Many thanks, Im actually modifying en existing report but an error now appears when adding in the above that too many arguments have been given to this function.
{SYJOBTRN.WORK_STAGE} >= ' ' and
{SYJOBTRN.WORK_STAGE} <= 'zzzzzzzzzzzzzzzz' and
{SYJOBTRN.ACTIVITY_CODE} >= ' ' and
{SYJOBTRN.ACTIVITY_CODE} <= 'zzzzzzzzzzzzzzzz' and
{SYJOBTRN.WEEK_NO} in 0.00 to 999999.00 and
{SYJOBTRN.APPLY_OVERHEAD} = 1.00 and
{PEPERSON.DISCIPLINE} >= ' ' and
{PEPERSON.DISCIPLINE} <= 'zzzzzzzz' and
{PEPERSON.GRADE} >= ' ' and
{PEPERSON.GRADE} <= 'zzzzzzzz' and
(1 = 1 OR
{JCJOBS.JOB_STATUS} = 0) and
(1 = 1 or
{JCJOBS.ACTIVE_FLAG} = ' ') and
(1 = 1 or
{JCJOBS.PRODUCTIVE} = 0) and
(1 = 1 or
{JCJOBS.PARTNER_IN_CHARGE} = ' ') and
(1 = 1 or
{JCJOBS.JOB_RUNNER} = ' ') and
(1 = 1 or
{JCJOBS.JOB_TYPE} = 0) and
(1 = 1 or
{JCJOBS.SL_ACCOUNT_CODE}= ' ') and
{PEPERSON.PERSONNEL_NO} >= ' ' and
{PEPERSON.PERSONNEL_NO} <= 'zzzzzzzzzzzzzzzz' and
{PEPERSON.COMPANY} in ["A", "D"] and
if {SYJOBTRN.JOB} = 'A012621' then totext({SYJOBTRN.JOB},0,"") else 'Other Jobs'