Difference between revisions of "SAVE DATASESSION"
From Recital Documentation Wiki
Barrymavin (Talk | contribs) |
Barrymavin (Talk | contribs) (→Description) |
||
Line 11: | Line 11: | ||
==Description== | ==Description== | ||
− | The SAVE DATASESSION command is used to save the status of | + | The SAVE DATASESSION command is used to save the status of all open database tables. The SAVE DATASESSION command saves the following information pertaining to the current session for each open table: |
* Workarea number | * Workarea number | ||
Line 24: | Line 24: | ||
* found() status | * found() status | ||
− | The RESTORE DATASESSION command may be used to restore the above information. | + | The RESTORE DATASESSION command may be used to restore the above information. |
==Example== | ==Example== |
Revision as of 04:03, 3 June 2011
Purpose
Save the status of the current data session
Syntax
SAVE DATASESSION [ TO <memvar>]
See Also
@...GET, CHANGE, EDIT, ON KEY, READ, REPLACE(), RESTORE RECORDVIEW, RESTORE DATASESSION, SET CLIPPER, SET KEY, SET PCKEYS, SKIP
Description
The SAVE DATASESSION command is used to save the status of all open database tables. The SAVE DATASESSION command saves the following information pertaining to the current session for each open table:
- Workarea number
- database name
- full path of table
- all index files
- Current record number
- Current index order
- Lock status
- eof() status
- bof() status
- found() status
The RESTORE DATASESSION command may be used to restore the above information.
Example
procedure check_value save datasession close all // open up some new tables using a new datasession restore datasession return
Products
Recital Server, Recital