BookmarkSubscribeRSS Feed
nala030
Calcite | Level 5

I created a report using DATA_NULL_ Steps. The output is a PDF file.

Then I wantto insert an outomatic contstructed table of contents (ods pdf content=yes).

The constructionof the Report is in like this:

DATA _NULL_

Dcl odsout obj();

Ods proclabel“heading1”;

Obj.format_text(data:”heading1”);

Obj.format_text(data:”alittle bit of text”);

Obj.table_start(name:”heading1”);

Obj.row_start();

Obj.format.cell(data:“note1“);

Obj.format.cell(data:note2”);

Obj.row_end();

Obj.table_end();

Run;

This constructionrepeats a couple of times

When youexecute the program a table of contents is printed on the first page of the pdffile.

This lookslike this:

Table ofContent

Überschrift…………1

DATA _NULL_........1

DATA _NULL_........1

DATA _NULL_........1

.

How can Iinsert the TOC on page 2 of the document? I want to have a title page at thebeginning so the TOC should be placed after the title page.

How can Idelete or supress the output of the subheadings in the TOC

(the DATA _NULL_text)?

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi,

I am not sure that anything can appear before the TOC page with ODS PDF. But since you are using the DATA step object syntax, you might want to work with Tech Support on this question. I thought the object syntax was still pre-production, so there might not be a way to do what you want with the TOC. If there is a way to change the node information, Tech Support can help you with figuring that out.

  

Cynthia

nala030
Calcite | Level 5

I wrote to the German Tech Support.

They said that the DATA STEP is still a Pre-Production and therefore they can't send the Question to Cary to ask.

So at the moment it's not possible to change the TOC the way i like to.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 772 views
  • 0 likes
  • 2 in conversation