Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | dish | |
Module | dish | |
Tool | sditerator |
filename | in | Name of new data set on disk. | |
Allowed: | String | ||
type | in | The type of data set. | |
Allowed: | String | ||
Default: | 'Table' | ||
lockoptions | in | locking to be used | |
Allowed: | String | ||
Default: | auto |
sdit := sditerator("a302_SP",correcteddata=T); newit := newsditerator("a302_SP.copy"); for (i in 1:sdit.length()) { newit.appendrec(sdit.get()); sdit.next(); }
This example shows how a new sditerator is created and sdrecords from a existing sditerator are copied to it. The first line opens the existing data set. The second line creates a new data set. The loop copies each record from the existing sditerator to the new one.