My pl sql code is not working: : This is my code:

    CREATE OR REPLACE PROCEDURE log(repname in varchar2) AS PACKAGE_NAME VARCHAR2,START_TIME DATE, END_TIME DATE,STATUS;
    
    BEGIN
    
    SELECT PACKAGE_NAME ,PRCS_START_TIME ,PRCS_END_TIME,STATUS
    FROM CONTCL_OWNER.PROCESSLOG WHERE PACKAGE_NAME LIKE REPNAME
    ORDER BY PRCS_START_TIME WHERE ROW_NUMBER <=7;
    END;

its giving me these errors:


