{"id":2632,"date":"2023-07-21T10:11:42","date_gmt":"2023-07-21T10:11:42","guid":{"rendered":"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/"},"modified":"2023-07-21T10:11:42","modified_gmt":"2023-07-21T10:11:42","slug":"sas-datensatz-loschen","status":"publish","type":"post","link":"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/","title":{"rendered":"So l\u00f6schen sie datens\u00e4tze in sas (3 beispiele)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Hier sind die drei h\u00e4ufigsten Methoden zum L\u00f6schen von Datens\u00e4tzen in SAS:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Methode 1: Einen Datensatz l\u00f6schen<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #800080;\">proc datasets<\/span> <span style=\"color: #3366ff;\">library<\/span> =work <span style=\"color: #3366ff;\">nolist<\/span> ;\n    <span style=\"color: #3366ff;\">delete<\/span> data2;\n<span style=\"color: #800080;\">quit<\/span> ;\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Methode 2: Mehrere Datens\u00e4tze l\u00f6schen<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #800080;\">proc datasets<\/span> <span style=\"color: #3366ff;\">library<\/span> =work <span style=\"color: #3366ff;\">nolist<\/span> ;\n    <span style=\"color: #3366ff;\">delete<\/span> data2 data3;\n<span style=\"color: #800080;\">quit<\/span> ;\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Methode 3: Alle Datens\u00e4tze aus der Bibliothek l\u00f6schen<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #800080;\">proc datasets<\/span> <span style=\"color: #3366ff;\">library<\/span> =work <span style=\"color: #3366ff;\">kill<\/span> ;<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Die folgenden Beispiele zeigen, wie jede Methode mithilfe einer <strong>WORK-<\/strong> Bibliothek verwendet wird, die drei Datens\u00e4tze enth\u00e4lt: <strong>data1<\/strong> , <strong>data2<\/strong> und <strong>data3<\/strong> .<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Beispiel 1: Einen Datensatz l\u00f6schen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Mit dem folgenden Code k\u00f6nnen wir nur den Datensatz mit dem Titel <strong>data2<\/strong> in unserer <strong>WORK-<\/strong> Bibliothek l\u00f6schen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #800080;\"><span style=\"color: #008000;\">\/*delete data2 from work library*\/<\/span>\nproc datasets<\/span> <span style=\"color: #3366ff;\">library<\/span> =work <span style=\"color: #3366ff;\">nolist<\/span> ;\n    <span style=\"color: #3366ff;\">delete<\/span> data2;\n<span style=\"color: #800080;\">quit<\/span> ;<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Anschlie\u00dfend k\u00f6nnen wir den folgenden Code verwenden, um alle verbleibenden Datens\u00e4tze in unserer <strong>WORK-<\/strong> Bibliothek aufzulisten:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #800080;\">proc datasets<\/span> <span style=\"color: #3366ff;\">library<\/span> =work <span style=\"color: #3366ff;\">memtype<\/span> =data;\n<span style=\"color: #800080;\">run<\/span> ;\n<span style=\"color: #800080;\">quit<\/span> ;\n<\/strong><\/span><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-23231 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/supprimant1-1.jpg\" alt=\"\" width=\"655\" height=\"281\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">Wir k\u00f6nnen sehen, dass nur noch <strong>Daten1<\/strong> und <strong>Daten3<\/strong> in unserer WORK-Bibliothek verbleiben. Der Datensatz namens <strong>data2<\/strong> wurde gel\u00f6scht.<\/span><\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Beispiel 2: Mehrere Datens\u00e4tze l\u00f6schen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Mit dem folgenden Code k\u00f6nnen wir die Datens\u00e4tze mit den Namen <strong>data2<\/strong> und <strong>data3<\/strong> in unserer <strong>WORK-<\/strong> Bibliothek l\u00f6schen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #800080;\"><span style=\"color: #008000;\">\/*delete data2 from work library*\/<\/span>\nproc datasets<\/span> <span style=\"color: #3366ff;\">library<\/span> =work <span style=\"color: #3366ff;\">nolist<\/span> ;\n    <span style=\"color: #3366ff;\">delete<\/span> data2 data3;\n<span style=\"color: #800080;\">quit<\/span> ;<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Anschlie\u00dfend k\u00f6nnen wir den folgenden Code verwenden, um alle verbleibenden Datens\u00e4tze in unserer <strong>WORK-<\/strong> Bibliothek aufzulisten:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #800080;\"><span style=\"color: #008000;\">\/*view all remaining datasets in work library*\/<\/span>\nproc datasets<\/span> <span style=\"color: #3366ff;\">library<\/span> =work <span style=\"color: #3366ff;\">memtype<\/span> =data;\n<span style=\"color: #800080;\">run<\/span> ;\n<span style=\"color: #800080;\">quit<\/span> ;\n<\/strong><\/span><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-23232 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/supprimant2.jpg\" alt=\"\" width=\"671\" height=\"263\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Wir k\u00f6nnen sehen, dass nur noch <strong>data1<\/strong> in unserer WORK-Bibliothek verbleibt. Die Datens\u00e4tze <strong>data2<\/strong> und <strong>data3<\/strong> wurden gel\u00f6scht.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Beispiel 3: Alle Datens\u00e4tze aus der Bibliothek l\u00f6schen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Mit dem folgenden Code k\u00f6nnen wir alle Datens\u00e4tze aus unserer <strong>WORK-<\/strong> Bibliothek entfernen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #800080;\"><span style=\"color: #008000;\">\/*delete all datasets from work library*\/<\/span>\nproc datasets <span style=\"color: #3366ff;\">library<\/span> <span style=\"color: #000000;\">=work<\/span> <span style=\"color: #3366ff;\">kill<\/span> <span style=\"color: #000000;\">;<\/span>\n<\/span><\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Anschlie\u00dfend k\u00f6nnen wir den folgenden Code verwenden, um alle verbleibenden Datens\u00e4tze in unserer <strong>WORK-<\/strong> Bibliothek aufzulisten:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #800080;\"><span style=\"color: #008000;\">\/*view all remaining datasets in work library*\/<\/span>\nproc datasets<\/span> <span style=\"color: #3366ff;\">library<\/span> =work <span style=\"color: #3366ff;\">memtype<\/span> =data;\n<span style=\"color: #800080;\">run<\/span> ;\n<span style=\"color: #800080;\">quit<\/span> ;\n<\/strong><\/span><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-23233 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/supprim3.jpg\" alt=\"\" width=\"672\" height=\"227\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Wir k\u00f6nnen sehen, dass in unserer <strong>WORK-<\/strong> Bibliothek keine weiteren Datens\u00e4tze mehr vorhanden sind, da wir die <strong>KILL-<\/strong> Funktion zum L\u00f6schen aller Datens\u00e4tze verwendet haben.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Zus\u00e4tzliche Ressourcen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">In den folgenden Tutorials wird erl\u00e4utert, wie Sie andere h\u00e4ufige Aufgaben in SAS ausf\u00fchren:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/de\/zusammenfassendes-verfahren-in-sas\/\" target=\"_blank\" rel=\"noopener\">So verwenden Sie die Verfahrenszusammenfassung in SAS<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/sas-variablen-umbenennen\/\" target=\"_blank\" rel=\"noopener\">So benennen Sie Variablen in SAS um<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/ohne-neue-variablen-zu-erstellen\/\" target=\"_blank\" rel=\"noopener\">So erstellen Sie neue Variablen in SAS<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hier sind die drei h\u00e4ufigsten Methoden zum L\u00f6schen von Datens\u00e4tzen in SAS: Methode 1: Einen Datensatz l\u00f6schen proc datasets library =work nolist ; delete data2; quit ; Methode 2: Mehrere Datens\u00e4tze l\u00f6schen proc datasets library =work nolist ; delete data2 data3; quit ; Methode 3: Alle Datens\u00e4tze aus der Bibliothek l\u00f6schen proc datasets library =work [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>So l\u00f6schen Sie Datens\u00e4tze in SAS (3 Beispiele) \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Datens\u00e4tze in SAS gel\u00f6scht werden.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"So l\u00f6schen Sie Datens\u00e4tze in SAS (3 Beispiele) \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Datens\u00e4tze in SAS gel\u00f6scht werden.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-21T10:11:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/supprimant1-1.jpg\" \/>\n<meta name=\"author\" content=\"Dr. Benjamin Anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. Benjamin Anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/\",\"url\":\"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/\",\"name\":\"So l\u00f6schen Sie Datens\u00e4tze in SAS (3 Beispiele) \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/de\/#website\"},\"datePublished\":\"2023-07-21T10:11:42+00:00\",\"dateModified\":\"2023-07-21T10:11:42+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\"},\"description\":\"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Datens\u00e4tze in SAS gel\u00f6scht werden.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heim\",\"item\":\"https:\/\/statorials.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"So l\u00f6schen sie datens\u00e4tze in sas (3 beispiele)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/de\/#website\",\"url\":\"https:\/\/statorials.org\/de\/\",\"name\":\"Statorials\",\"description\":\"Ihr Leitfaden f\u00fcr statistische Kompetenz !\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\",\"name\":\"Dr. Benjamin Anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. Benjamin Anderson\"},\"description\":\"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen\",\"sameAs\":[\"https:\/\/statorials.org\/de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"So l\u00f6schen Sie Datens\u00e4tze in SAS (3 Beispiele) \u2013 Statorials","description":"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Datens\u00e4tze in SAS gel\u00f6scht werden.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/","og_locale":"de_DE","og_type":"article","og_title":"So l\u00f6schen Sie Datens\u00e4tze in SAS (3 Beispiele) \u2013 Statorials","og_description":"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Datens\u00e4tze in SAS gel\u00f6scht werden.","og_url":"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/","og_site_name":"Statorials","article_published_time":"2023-07-21T10:11:42+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/supprimant1-1.jpg"}],"author":"Dr. Benjamin Anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr. Benjamin Anderson","Gesch\u00e4tzte Lesezeit":"2 Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/","url":"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/","name":"So l\u00f6schen Sie Datens\u00e4tze in SAS (3 Beispiele) \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/de\/#website"},"datePublished":"2023-07-21T10:11:42+00:00","dateModified":"2023-07-21T10:11:42+00:00","author":{"@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0"},"description":"In diesem Tutorial wird anhand mehrerer Beispiele erl\u00e4utert, wie Datens\u00e4tze in SAS gel\u00f6scht werden.","breadcrumb":{"@id":"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/de\/sas-datensatz-loschen\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/de\/sas-datensatz-loschen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Heim","item":"https:\/\/statorials.org\/de\/"},{"@type":"ListItem","position":2,"name":"So l\u00f6schen sie datens\u00e4tze in sas (3 beispiele)"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/de\/#website","url":"https:\/\/statorials.org\/de\/","name":"Statorials","description":"Ihr Leitfaden f\u00fcr statistische Kompetenz !","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"Person","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0","name":"Dr. Benjamin Anderson","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","caption":"Dr. Benjamin Anderson"},"description":"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen","sameAs":["https:\/\/statorials.org\/de"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/2632"}],"collection":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/comments?post=2632"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/2632\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/media?parent=2632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/categories?post=2632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/tags?post=2632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}