System Command SAVE: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
No edit summary
Line 8: Line 8:
: )SAVE ''workspacename''<br/>
: )SAVE ''workspacename''<br/>
</code>
</code>
Where &quot;'''workspacename'''&quot; is the name you want to use. If the save was successful, it will list the name of the workspace and the current time and date. The save command will fail if you are in a CLEAR WS and you give the )SAVE command without giving a name for the workspace.
Where &quot;'''workspacename'''&quot; is the name you want to use. If the save was successful, it will list the name of the workspace and the current time and date. The save command will fail if you are in a CLEAR WS and you give the )SAVE command without giving a name for the workspace. The name cannot have spaces in it, anything following a space will be ignored.


The command works like this:<br/><br/><code>
The command works like this:<br/><br/><code>
Line 17: Line 17:
If you use the )SAVE command again, it will replace the existing workspace.  Note that if you use the same name as an existing workspace, it will replace it without asking if you want to overwrite it.   
If you use the )SAVE command again, it will replace the existing workspace.  Note that if you use the same name as an existing workspace, it will replace it without asking if you want to overwrite it.   


To continue to use a workspace again after saving it, use the [[System Command LOAD|)LOAD]] or [[System Command XLOAD|)XLOAD]] commands. The difference being that when a workspace is retrieved using <apll>)LOAD</apll>, the value of the system variable {quad}LX is executed before the Session Manager returns control to the user; <apll>}XLOAD</apll> does not execute the system variable {quad}LX.
==See also==
* [[System Variable LX|{quad}LX]]
* [[System Command LOAD|)LOAD]]
* [[System Command XLOAD|)XLOAD]]
{{Commands}}
{{Commands}}

Revision as of 15:32, 27 February 2013

)SAVE - Save the current workspace to disc

In order to use the functions and variables which you have created again, you must save the workspace you are using. This is the same as when you edit a document in a word processor or a spreadsheet in a spreadsheet program, you have to save what you are working on. If your workspace is still the CLEAR workspace, you must either use the )WSID command before saving or you must give a name on the )SAVE command. You cannot save the CLEAR workspace without giving it a name.

You issue the command

)SAVE

if the workspace has a name, or

)SAVE workspacename

Where "workspacename" is the name you want to use. If the save was successful, it will list the name of the workspace and the current time and date. The save command will fail if you are in a CLEAR WS and you give the )SAVE command without giving a name for the workspace. The name cannot have spaces in it, anything following a space will be ignored.

The command works like this:

      )SAVE This_is_my_Workspace
This_is_my_Workspace SAVED 02/26/2013 23:49:12

If you use the )SAVE command again, it will replace the existing workspace. Note that if you use the same name as an existing workspace, it will replace it without asking if you want to overwrite it.

To continue to use a workspace again after saving it, use the )LOAD or )XLOAD commands. The difference being that when a workspace is retrieved using )LOAD, the value of the system variable ⎕LX is executed before the Session Manager returns control to the user; }XLOAD does not execute the system variable ⎕LX.

See also

System Commands (not case sensitive)
)CLEAR )CLOSE )COPY )DROP )EDIT )ERASE )EXIT )FNS )FOP )FOPS
)IN )INASCII )LIB )LOAD )NEWTAB )NMS )OFF )OPEN )OPS )OUT
)RESET )SAVE )SI )SIC )SINL )SYMB )ULIB )VARS )XLOAD )WSID