<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ODS OUT OBJECT : logo in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-OUT-OBJECT-logo/m-p/796546#M255617</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a strange error while executing the ods object code.&lt;/P&gt;
&lt;P&gt;The error is like I have no file for the logo, but the logo is appearing on output document.&lt;/P&gt;
&lt;P&gt;My code is :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
	select count(distinct Code) into :nb_obs_nom_prd  from Accord;
quit;

%macro fichiers_publipostage_pdf_accord;
	%do i=1 %to &amp;amp;nb_obs_nom_prd.;


		data _NULL_;
			set ACCORD;
					CALL SYMPUTX(COMPRESS('Produit'),Produit);
	                CALL SYMPUTX(COMPRESS('Code'),Code);
                    CALL SYMPUTX(COMPRESS('Montant_min_de_vers_init'),Montant_min_de_vers_init);
	                CALL SYMPUTX(COMPRESS('FRAIS_GESTION_OL_UC2'),FRAIS_GESTION_OL_UC);

		run;



		OPTION NODATE NONUMBER;
		OPTIONS PAPERSIZE=A4;
		options orientation=portrait;
		OPTIONS TOPMARGIN=.001 in BOTTOMMARGIN=.001 in LEFTMARGIN=.001 in RIGHTMARGIN=.001 in ;
		ODS NORESULTS;
		ODS PDF FILE = "&amp;amp;Publipostage.\&amp;amp;Code..pdf" dpi=1800;
		ODS ESCAPECHAR = "^";

		data _NULL_;
			declare odsout obj();
	obj.layout_absolute(width:
			"8.26 in",height:"11.68 in" );

	obj.region(width:
			"18cm" ,x: "1.5cm", y:"1cm", height:"0.4cm", style_attr: "bordercolor=cx338AF");
			obj.line( style_attr: "bordercolor=cx338AFF", size:'0.8mm');

  obj.region(width:
			" 5 cm",x:"1.5cm", height:"2.2 cm",y:"1.5 cm", style_attr: "bordercolor=cx338AFF bordercolor=cx338AFF");
			obj.image(file : "\\XXX\logo_officiel.png" , overrides : " width=100pct ");

  
			run;

	%end;
%mend;

%fichiers_publipostage_pdf_accord;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the error :ERROR: Path "file:///\XXXXX\logo_officiel.png" does not &lt;BR /&gt;exist.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I have the logo on document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 13:43:31 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2022-02-16T13:43:31Z</dc:date>
    <item>
      <title>ODS OUT OBJECT : logo</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-OUT-OBJECT-logo/m-p/796546#M255617</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a strange error while executing the ods object code.&lt;/P&gt;
&lt;P&gt;The error is like I have no file for the logo, but the logo is appearing on output document.&lt;/P&gt;
&lt;P&gt;My code is :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
	select count(distinct Code) into :nb_obs_nom_prd  from Accord;
quit;

%macro fichiers_publipostage_pdf_accord;
	%do i=1 %to &amp;amp;nb_obs_nom_prd.;


		data _NULL_;
			set ACCORD;
					CALL SYMPUTX(COMPRESS('Produit'),Produit);
	                CALL SYMPUTX(COMPRESS('Code'),Code);
                    CALL SYMPUTX(COMPRESS('Montant_min_de_vers_init'),Montant_min_de_vers_init);
	                CALL SYMPUTX(COMPRESS('FRAIS_GESTION_OL_UC2'),FRAIS_GESTION_OL_UC);

		run;



		OPTION NODATE NONUMBER;
		OPTIONS PAPERSIZE=A4;
		options orientation=portrait;
		OPTIONS TOPMARGIN=.001 in BOTTOMMARGIN=.001 in LEFTMARGIN=.001 in RIGHTMARGIN=.001 in ;
		ODS NORESULTS;
		ODS PDF FILE = "&amp;amp;Publipostage.\&amp;amp;Code..pdf" dpi=1800;
		ODS ESCAPECHAR = "^";

		data _NULL_;
			declare odsout obj();
	obj.layout_absolute(width:
			"8.26 in",height:"11.68 in" );

	obj.region(width:
			"18cm" ,x: "1.5cm", y:"1cm", height:"0.4cm", style_attr: "bordercolor=cx338AF");
			obj.line( style_attr: "bordercolor=cx338AFF", size:'0.8mm');

  obj.region(width:
			" 5 cm",x:"1.5cm", height:"2.2 cm",y:"1.5 cm", style_attr: "bordercolor=cx338AFF bordercolor=cx338AFF");
			obj.image(file : "\\XXX\logo_officiel.png" , overrides : " width=100pct ");

  
			run;

	%end;
%mend;

%fichiers_publipostage_pdf_accord;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the error :ERROR: Path "file:///\XXXXX\logo_officiel.png" does not &lt;BR /&gt;exist.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I have the logo on document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 13:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-OUT-OBJECT-logo/m-p/796546#M255617</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2022-02-16T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODS OUT OBJECT : logo</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-OUT-OBJECT-logo/m-p/796576#M255633</link>
      <description>&lt;P&gt;You want to make sure than any path referencing an external file starts at a drive / mount point &lt;STRONG&gt;and&lt;/STRONG&gt; is accessible from where ever SAS executes. If your SAS is running in any of the server variants then it very likely does not see files from your local computer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note error message text where I have underlined&lt;/P&gt;
&lt;PRE&gt;:ERROR: Path "file:&lt;U&gt;///\&lt;/U&gt;XXXXX\logo_officiel.png" does not &lt;/PRE&gt;
&lt;P&gt;compared with the code posted which may mean the code run isn't quite what you showed, also an extra x in the code.&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;file : "\\XXX\logo_officiel.png" &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 15:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-OUT-OBJECT-logo/m-p/796576#M255633</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-16T15:23:45Z</dc:date>
    </item>
  </channel>
</rss>

