LesezeichenAbonnierenRSS-Feed abonnieren
1 ANTWORT 1
KlausBücher
Fluorite | Level 6

Hier noch eine zweite Lösung, bei der ich mir den Wert aus dem alten Datensatz merke:

Data test;

Input Zeile UHRZEIT time8.0;

format Uhrzeit nltime.;

cards;

1 08:15:00

2 08:17:00

3 08:21:00

4 08:36:00

run;

data result;

format alteuhrzeit nltime.;

set test;

by zeile;

/* Variable, die aus "altem" Satz übernommen werden sollen mit Retain festhalten */

retain alteuhrzeit;

output;

/* Werte des Vorgängersatzes merken */

alteuhrzeit = uhrzeit;

run;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

Diskussionsstatistiken
  • 1 Antwort
  • 23862 Aufrufe
  • 0 Kudos
  • 2 in Unterhaltung