Pregunta

¿Cómo veo el archivo a continuación en Enterprise Guide (v 4.1)?

%let libWORK=%sysfunc(pathname(WORK)); * work lib is on UNIX ;
data _null_;
    file "&libWORK./MYFILE.htm";
    put '<html>' /
        '   <head>'/
        '       <title> A Title </title>'/
        '</head> <body> some content </body> </html>';
run;
¿Fue útil?

Solución 2

En realidad, de manera molesta, mi solución anterior no ayudó. SAS sigue aplicando un "envoltorio" al HTML, destruyendo cualquier información del encabezado (por ejemplo, funciones de Javascript).

Lo siguiente lo solucionará: básicamente, ejecute un trozo de código ficticio para crear la referencia en su sesión de EG, luego, ¡sobrescríbalo con algunos html puros de su elección! El enlace permanecerá ...

%let libWORK=%sysfunc(pathname(WORK)); * work lib is on UNIX ; 
ods html body="&libWORK./MYFILE.htm" ;
data _null_;
 file print;
 put "this will be overwritten! ";
run;
ods html close;

data _null_; 
    file "&libWORK./MYFILE.htm"; 
    put '<html>' / 
        '       <head>'/ 
        '               <title> A Title </title>'/ 
        '</head> <body> some content </body> </html>'; 
run;

Otros consejos

¡Lo tengo! eventualmente.

data _null_;
    file print;
    infile "&libWORK./MYFILE.htm"; 
    input;
    put _infile_;
run;
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top