Man Page Index

Saves the currently active select list to a named list record.



SAVE-LIST {list-name}



list-name specifies the name under which the list is to be stored. If you do not specify a list name, the default list will be used



The SAVE-LIST command is used to store the currently active (default) select list under a permanent list name. If the specified list name already exists, it will be overwritten.

A 'list-name' cannot be saved to a number in the range of 0 through 10 as these are reserved for 'internal' select-lists. Any list saved to a number in this range is saved to an internal list (JBC_NUMBERED_LISTS in jBASEWORK). For example, if a list is saved with...

SAVE-LIST 6 is then only available to the next command entered. In other words, you can only do at most one 'GET-LIST 6' which then uses the internal list (Note that it is not stored in the POINTER-FILE or any file pointed to by JBCLISTFILE). Any subsequent 'GET-LIST 6' will fail since the list no longer exists internally or externally. If you need to use numbered lists, we recommendation that you use numbers greater than 10 to avoid conflicts with the internal (and reserved) list numbers.

Also see the information on list storage.



40 records selected

Sorts and selects records from the CUSTOMER file which have a POST.CODE value that starts with MK. Saves the list as CUSTOMERS.MK.