{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Notebook SAS" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Les notebooks SAS reposent sur l'ods. On peut donc utiliser les fonctionnalités de l'ods." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "SAS Connection established. Subprocess id is 4596\n", "\n" ] }, { "data": { "text/html": [ "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "Sortie SAS\r\n", "\r\n", "\r\n", "\r\n", "

Sortie SAS

\r\n", "
\r\n", "

La MEANS Procédure

\r\n", "
\r\n", "

Statistiques descriptives

\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "
VariableNMoyenneEcart-typeMinimumMaximum
\r\n", "
\r\n", "
Age
\r\n", "
Height
\r\n", "
Weight
\r\n", "
\r\n", "
\r\n", "
\r\n", "
19
\r\n", "
19
\r\n", "
19
\r\n", "
\r\n", "
\r\n", "
\r\n", "
13.3157895
\r\n", "
62.3368421
\r\n", "
100.0263158
\r\n", "
\r\n", "
\r\n", "
\r\n", "
1.4926722
\r\n", "
5.1270752
\r\n", "
22.7739335
\r\n", "
\r\n", "
\r\n", "
\r\n", "
11.0000000
\r\n", "
51.3000000
\r\n", "
50.5000000
\r\n", "
\r\n", "
\r\n", "
\r\n", "
16.0000000
\r\n", "
72.0000000
\r\n", "
150.0000000
\r\n", "
\r\n", "
\r\n", "
\r\n", "
\r\n", "\r\n", "\r\n" ], "text/plain": [ "" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ods title;\n", "ods noproctitle;\n", "proc means data=sashelp.class;\n", "run;" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", "Sortie SAS\r\n", "\r\n", "\r\n", "\r\n", "

Sortie SAS

\r\n", "
\r\n", "

La SGPLOT Procédure

\r\n", "
\r\n", "

The SGPlot Procedure

\r\n", "
\r\n", "\"The\r\n", "
\r\n", "
\r\n", "
\r\n", "\r\n", "\r\n" ], "text/plain": [ "" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "title 'Student Weight by Student Height';\n", "proc sgplot data=sashelp.class noautolegend;\n", " pbspline y=weight x=height;\n", "run;" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "En cas d'erreur, la log s'affiche dans le notebook :" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", " \n", " \n", " \n", "\n", "\n", "

\n", "\n", "
\f",
       "8                                                          Le Système SAS                           23:47 Monday, September 17, 2018

61 ods listing close;ods html5 (id=saspy_internal) file=_tomods1 options(bitmap_mode='inline') device=svg style=HTMLBlue;
61 ! ods graphics on / outputfmt=png;
NOTE: Writing HTML5(SASPY_INTERNAL) Body file: _TOMODS1
62
63 proc means data sashelp.class;
_____________
73
ERROR 73-322: Expecting an =.
64 run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.00 secondes
cpu time 0.00 secondes

65
66 ods html5 (id=saspy_internal) close;ods listing;
67
\n", "\n", "\n" ], "text/plain": [ "" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "proc means data sashelp.class;\n", "run;" ] } ], "metadata": { "kernelspec": { "display_name": "SAS", "language": "sas", "name": "sas" }, "language_info": { "codemirror_mode": "sas", "file_extension": ".sas", "mimetype": "text/x-sas", "name": "sas" } }, "nbformat": 4, "nbformat_minor": 2 }