BookmarkSubscribeRSS Feed
xxformat_com
Barite | Level 11

Hi,

Also it is possible to use the liststyletype in the list statement when working with proc odstext, it doesn't seem to work with

liststyleimage. Is it an expected feature?

 

Here is an example of image found on the internet for testing purpose only :arrow.jpeg

 

The following code works (liststyleimage in item statement):

ods pdf file="&xxtest./reporting/test.pdf";

proc odstext;
   list;
      item 'Bullet Point 1' / style=[liststyleimage="&xxtest./images/arrow.jpeg"];
      item 'Bullet Point 2' / style=[liststyleimage="&xxtest./images/arrow.jpeg"];
      item 'Bullet Point 3' / style=[liststyleimage="&xxtest./images/arrow.jpeg"];
   end;
run;

ods pdf close;

But the following doesn't work (liststyleimage in the list statement). I have to abort the program.

ods pdf file="&xxtest./reporting/test.pdf";

proc odstext;
   list / style=[liststyleimage="&xxtest./images/arrow.jpeg"];
      item 'Bullet Point 1';
      item 'Bullet Point 2';
      item 'Bullet Point 3';
   end;
run;

ods pdf close;

Kind Regards,

2 REPLIES 2
JosvanderVelden
SAS Super FREQ

Can you run a test to see if it works if you replace the [] with {}?

So

style=[liststyleimage="&xxtest./images/arrow.jpeg"]

becomes

style={liststyleimage="&xxtest./images/arrow.jpeg"}

.

 

Best regards, Jos

 

 

xxformat_com
Barite | Level 11

Here is the output after stopping the code using curly braces. The result was the same with square braces.

 77         ods pdf file="&xxtest./reporting/test.pdf";
 NOTE: Writing ODS PDF output to DISK destination 
       "C:\Users\xxformat\Documents\Dropbox\xxformat\xxformat_prod_courses\sas\l2\l2_mod3\l2_mod3_c
       hap2_ods\reporting\test.pdf", printer "PDF".
 78         
 79         proc odstext;
 80            list / style={liststyleimage="&xxtest./images/arrow.jpeg"};
 81               item 'Bullet Point 1';
 82               item 'Bullet Point 2';
 83               item 'Bullet Point 3';
 84            end;
 85         run;
  
 ERROR:  An exception has been encountered.
 Please contact technical support and provide them with the following traceback information:
  
 The SAS task name is [ODSTEXT (2)]
 ERROR:  Read Access Violation ODSTEXT (2)
 Exception occurred at (08BAF9A3)
 Task Traceback
 Address   Frame     (DBGHELP API Version 4.0 rev 5)
 0000000008BAF9A3  000000000A727990  sasmrk:tkvercn1+0x11E963
 0000000008AFDCB0  000000000A727AB0  sasmrk:tkvercn1+0x6CC70
 0000000008AE34E0  000000000A7286A0  sasmrk:tkvercn1+0x524A0
 0000000008BA6FDA  000000000A7286E0  sasmrk:tkvercn1+0x115F9A
 0000000008A97AC0  000000000A728850  sasmrk:tkvercn1+0x6A80
 0000000008BA6FDA  000000000A728890  sasmrk:tkvercn1+0x115F9A
 0000000008A9C6E5  000000000A728970  sasmrk:tkvercn1+0xB6A5
 0000000008BA6FDA  000000000A7289B0  sasmrk:tkvercn1+0x115F9A
 0000000008B42953  000000000A72A2F0  sasmrk:tkvercn1+0xB1913
 0000000008B43A9D  000000000A72BC30  sasmrk:tkvercn1+0xB2A5D
 0000000008B4397E  000000000A72D570  sasmrk:tkvercn1+0xB293E
 0000000008B43ADD  000000000A72EEB0  sasmrk:tkvercn1+0xB2A9D
 0000000008B41DF9  000000000A72EEF0  sasmrk:tkvercn1+0xB0DB9
 000000000888BC9D  000000000A72EEF8  sasoda:tkvercn1+0x1AC5D
 000000000840755A  000000000A72F078  sasods:tkvercn1+0x22651A
 0000000008235BED  000000000A72F350  sasods:tkvercn1+0x54BAD
 0000000008234E3D  000000000A72F620  sasods:tkvercn1+0x53DFD
 000000000A1542AA  000000000A72F628  sasprto:tkvercn1+0x326A
 000000000A15343E  000000000A72F920  sasprto:tkvercn1+0x23FE
 000000000A1516AD  000000000A72FA70  sasprto:tkvercn1+0x66D
 000000000A13166A  000000000A72FA78  sasrende:tkvercn1+0x62A
 000000000A13121E  000000000A72FBB0  sasrende:tkvercn1+0x1DE
 000000000344A066  000000000A72FBB8  sashost:Main+0x11BA6
 000000000345011D  000000000A72FF20  sashost:Main+0x17C5D
 00007FFFAE987034  000000000A72FF28  KERNEL32:BaseThreadInitThunk+0x14
 00007FFFB0962651  000000000A72FF58  ntdll:RtlUserThreadStart+0x21

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 540 views
  • 0 likes
  • 2 in conversation