Desktop productivity for business analysts and programmers

Date and time on PDF Report

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 12
Accepted Solution

Date and time on PDF Report

Hi everyone,

On all my reports in PDF (created in Enterprise Guide) there is a date and timestamp on the left top of the page.

dateonreport.jpg

How can I remove the date and time from the reports?

Thank you,

David


Accepted Solutions
Solution
‎02-24-2013 09:22 AM
PROC Star
Posts: 1,146

Re: Date and time on PDF Report

The SAS options "date" and "nodate" turn this feature on and off. Depending on how familiar you are with SAS, there are a number of ways to implement this. Here's a task-specific one:

1. On the screens where you set up your task, there should be a "Preview code" button. Click it.

2. You'll see a new screen, with the Base SAS code that will be submitted for the task. There's an "Insert Code" button. Click it.

3. On the next screen, you'll see several "double-click to insert code" lines. On any of the lines BEFORE the line that invokes the SAS procedure that you're running (probably PROC PRINT or PROC REPORT), double click on the line to edit it, and type

options nodate;

on the line. (Make sure you include the semicolon!) If you're not sure, just do it on the first insert line. Click OK to insert the code.

That'll do it. However, if you want the date and time on other reports, find the RUN; line after the SAS procedure, and AFTER that line insert

options date;

on one of the insert lines. This will restore the default processing.

4. Click OK to exit the code insertion dialogue

5. Close the preview window.

You should be good to go!

Tom

View solution in original post


All Replies
Solution
‎02-24-2013 09:22 AM
PROC Star
Posts: 1,146

Re: Date and time on PDF Report

The SAS options "date" and "nodate" turn this feature on and off. Depending on how familiar you are with SAS, there are a number of ways to implement this. Here's a task-specific one:

1. On the screens where you set up your task, there should be a "Preview code" button. Click it.

2. You'll see a new screen, with the Base SAS code that will be submitted for the task. There's an "Insert Code" button. Click it.

3. On the next screen, you'll see several "double-click to insert code" lines. On any of the lines BEFORE the line that invokes the SAS procedure that you're running (probably PROC PRINT or PROC REPORT), double click on the line to edit it, and type

options nodate;

on the line. (Make sure you include the semicolon!) If you're not sure, just do it on the first insert line. Click OK to insert the code.

That'll do it. However, if you want the date and time on other reports, find the RUN; line after the SAS procedure, and AFTER that line insert

options date;

on one of the insert lines. This will restore the default processing.

4. Click OK to exit the code insertion dialogue

5. Close the preview window.

You should be good to go!

Tom

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 1335 views
  • 0 likes
  • 2 in conversation