Set the SAS system options. The system option SOURCE writes the source code to the log.
options nodate pageno=1 linesize=80 pagesize=60 source;