Trabalho da biblioteca SAS Enterprise Guia UNIX - visualização de arquivos
-
05-07-2019 - |
Pergunta
Como posso ver o arquivo abaixo no Guia Empresarial (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;
Solução 2
Na verdade - irritantemente - minha solução anterior não ajuda. SAS ainda se aplica a 'invólucro' para o HTML, destruindo qualquer informação de cabeçalho (por exemplo, funções Javascript).
A seguir irá corrigi-lo - basicamente executar uma peça fictícia de código para criar a referência na sua sessão de EG, em seguida, avançar para substituí-lo com um pouco de html puro da sua escolha! O link 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;
Outras dicas
Entendi! eventualmente.
data _null_;
file print;
infile "&libWORK./MYFILE.htm";
input;
put _infile_;
run;
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow