The SAS system option SOURCE writes the programming statements to the SAS log.
options pagesize=40 linesize=80 nodate pageno=1 source;