DATA can be stored in many ways. APL360 saved data in workspaces. Most modern APL systems including MYSYS also use seperate files. Note: MYSYS uses APL*PLUS/PC and the file suffix is .ASF. MYS2 uses APL*PLUS/II or later and the file suffix is .SF, otherwise the file names are the same. MYS2 also uses MYSYS files. In most respects the systems are very similar so only one description is given. The attempt is to make MYS2 increase the powere of MYSYS
MYSYS uses GLOBAL VARIABLES (referred to as globals) and various text arrays to structure the DATA used by some workspace functions. The names of the varibles in a workspace can be listed when in APLie by entering )vars, [Shift F7]. The contents of a variable can be listed by entering its name. Variable names that include the word DATA are text arrays giving names and current values of selected variables.
Master copies of the DATA tables are components of DATA, or the 'd' file. When using TVX and other workspaces current copies of the DATA are saved by logoff. These are usually the latest version of the array in the workspace. This proceedure is useful if you are intend to work with some of the data in a later session. Components of the DATA tables list the variable names used as globals and give brief descriptions. Component 1 of DATA.ASF is the directory of the data structures. List it from the menu below.
The function '‘ugv' is used to make the values of the global variables match
those in a data table. e.g.
‘ugv DUDATA ¦ updates the globals to values in DUDATA
The function '‘udt' is used to update the values in a data table to match the
global varaible variable values of the same name.
DUDATA‘udt DUDATA ¦ updates DUDATA to match the globals.
If you wish to save a particular set of data you must know the name of the variable used by the routine. A copy of this variable should then be saved in the LOG or other file such as TEXTM and listed in the directory of that file. A copy of DATA.ASF can be kept on a floppy in drive a: A backup should be available on another disk so that the format is not lost. If you are using a machine with a hard disk you may prefer to keep the backup on the hard disk.
Links:
End to date, ams 971129