%if %scan(&page,2,.) = %then %let page = &page..&defaultExtension;

If the SAS Server Page name does not include an extension, html is assumed

Return