BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DavidDemeyer
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
TomKari
Onyx | Level 15

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

1 REPLY 1
TomKari
Onyx | Level 15

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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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