
Chapter 7 537
Command Definitions S-SO
SAVE
This command applies only to temporary files on disk. It is similar to opening a file with
the FOPEN intrinsic, and then closing it with the FCLOSE intrinsic, using a permanent file
disposition.
Use the SAVE command to save KSAM XL files. Since the KSAMUTIL utility is not
supported for KSAM XL, the SAVE command is the only method of doing so.
Use
This command may be issued from a session, job, program, or in BREAK. Pressing Break
has no effect on this command.
Examples
To save the temporary file $OLDPASS, containing an object program, to the program file
PROGFILE, enter:
SAVE $OLDPASS,PROGFILE
To save the temporary file TEMPFL as a permanent file with the same name, enter:
SAVE TEMPFL
To save the temporary file DATAFILE in the group GROUPX, enter:
SAVE DATAFILE.GROUPX
To save a temporary file (other than $OLDPASS) and change its name, use the SAVE and
RENAME commands. Only the logon group and account directories in the current session
are searched, for example:
SAVE DATAFILE
RENAME DATAFILE,DATABASE
Related Information
Commands PURGE, LISTFILE, LISTFTEMP, RENAME
Manuals None