DATA Step, Macro, Functions and more

Image shown if code executed in EG but not as a STP

Reply
Frequent Contributor
Posts: 85

Image shown if code executed in EG but not as a STP

Hello everybody,

 

I have a JPG-file on the AIX-System and I want to display that image as part of a html result the user gets. I'm on SAS9.4M2.

 

Lets start with the coding:

ods _ALL_ CLOSE;
ods html;
ods escapechar='~';
title1 "Hello:";
title2 '~S={preimage="/path_to_file/Alexandria.JPG"}';

proc print data=result_table;
run;

ods html close;

When I run this coding from EG it works absolutly fine. First Hello: than the image is shown and than the table.

But if I run the same coding as part of my STP I just get a little black x inside of a border frame where the image should be.

I changed the permissions of the image to read for everybody and it is the same result.

There is no note, warning or error in the STP-Log.

The result Option for the STP is both Stream and Package.

 

Does anybody have any suggestions?

 

Best regards and thank you for your time in advance

Criptic

 

Frequent Contributor
Posts: 85

Re: Image shown if code executed in EG but not as a STP

I just tried using only Stream / Package but it didn't change anything
Super User
Posts: 13,066

Re: Image shown if code executed in EG but not as a STP

When you show

title2 '~S={preimage="/path_to_file/Alexandria.JPG"}';

is the path you use on your PC? Network location? EG server?

 

It is quite possible that your STP server doesn't see the same path. Do you have any messages in the log about file not found or such?

Frequent Contributor
Posts: 85

Re: Image shown if code executed in EG but not as a STP

@ballardw It is a file on the AIX where SAS is installed. The STP should see that path as I include a coding from that path and that is executed as expected.

There is no message in the Log. I changed the name of the image, so that I maybe get a response in the log put still nothing.

 

Thank you for your answer, do you have anyother suggestions? 

Ask a Question
Discussion stats
  • 3 replies
  • 85 views
  • 0 likes
  • 2 in conversation