Explicación : Escribe el inicio de la página HTML (encabezado y título) directamente en el flujo de salida web (_webout).
¡Copiado!
data _null_;
format infile $char256.;
input;
infile = resolve(_infile_);
file _webout;
put infile;
cards4;
<html>
<head>
<body>
<center>
<br><br>
<h1>SAS PROC PRINT OF SASHELP.CARS</h1>
</center>
<br>
</body>
</html>
;;;;
run;
1
DATA _null_;
2
FORMATINFILE $char256.;
3
INPUT;
4
INFILE = resolve(_infile_);
5
file _webout;
6
put INFILE;
7
cards4;
8
9
10
11
12
13
SAS PROC PRINT OF SASHELP.CARS
14
15
16
17
18
;;;;
19
RUN;
2 Bloque de código
ODS HTML
¡Copiado!
ods html file=_webout; /* This line opens the Output Delivery System to allow SAS Proc output streaming and close HTML */
options nodate nonumber;
proc print data=sashelp.cars (obs=10);
run;
ods html close; /* This line closes the Output Delivery System to end SAS Proc output streaming and resume HTML */
1
ods html file=_webout; /* This line opens the Output Delivery System to allow SAS Proc output streaming and close HTML */
2
3
options nodate nonumber;
4
5
PROC PRINTDATA=sashelp.cars (obs=10);
6
RUN;
7
8
9
ods html close; /* This line closes the Output Delivery System to end SAS Proc output streaming and resume HTML */
3 Bloque de código
DATA STEP
¡Copiado!
data _null_;
format infile $char256.;
input;
infile = resolve(_infile_);
file _webout;
put infile;
cards4;
<html>
<head>
<body>
<center>
<br><br>
<button type="button" onclick="alert('Hello world!')">Update Table</button>
</center>
<br>
</body>
</html>
;;;;
run;
1
DATA _null_;
2
FORMATINFILE $char256.;
3
INPUT;
4
INFILE = resolve(_infile_);
5
file _webout;
6
put INFILE;
7
cards4;
8
9
10
11
12
13
14
15
16
17
18
;;;;
19
RUN;
Este material se proporciona "tal cual" por We Are Cas. No hay garantías, expresas o implícitas, en cuanto a la comerciabilidad o idoneidad para un propósito particular con respecto a los materiales o el código contenidos en este documento. We Are Cas no es responsable de los errores en este material tal como existe ahora o existirá, ni We Are Cas proporciona soporte técnico para el mismo.
SAS y todos los demás nombres de productos o servicios de SAS Institute Inc. son marcas registradas o marcas comerciales de SAS Institute Inc. en los EE. UU. y otros países. ® indica registro en los EE. UU. WeAreCAS es un sitio comunitario independiente y no está afiliado a SAS Institute Inc.
Este sitio utiliza cookies técnicas y analíticas para mejorar su experiencia.
Saber más.