1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
DATA LIST LIST /id * begdate(SDATE) enddate(SDATE).
BEGIN DATA
1 2000/01/01 . 
2 2001/01/01 2002/01/01
3 2001/07/02 2002/06/30
4 2002/01/02 .
5 2002/06/07 .
END DATA.
LIST.

SAVE OUTFILE='c:\\temp\\master file.sav'.

DATA LIST LIST /id * begdate(SDATE) enddate(SDATE).
BEGIN DATA
1 2000/01/01 2001/02/02
5 2002/06/07 2002/09/09
END DATA.
LIST.

SAVE OUTFILE='c:\\temp\\update file.sav'.

****** start job.
UPDATE FILE='c:\\temp\\master file.sav'
	/FILE='c:\\temp\\update file.sav'
	/BY id begdate.

LIST.

This is the result of the LIST command:
      ID    BEGDATE    ENDDATE

    1.00 2000/01/01 2001/02/02
    2.00 2001/01/01 2002/01/01
    3.00 2001/07/02 2002/06/30
    4.00 2002/01/02          .
    5.00 2002/06/07 2002/09/09