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
Diamond | Level 26

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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1260 views
  • 0 likes
  • 2 in conversation