Investigate state server session¶
As an end user, you cannot directly inspect the data used by the data session or by the server session. As a model builder, you may need to investigate in detail what happens during these sessions.
One way is by creating a data snapshot by creating case files or text files. This article shows how to do this with text files.
Using the library¶
Library GuardServerSession, includes the procedure
gss::pr_SaveState with two arguments:
sp_LabelThe value of this string parameter is used as the folder name; this folder name is referred to as the output folder below.
s_SelectedIdentifiersThis is a subset of
AllSymbols. For each identifier that contains data, a corresponding file is created in the output folder, containing one element per line.
If your app is running on an AIMMS PRO platform, or if it has a connection to an AIMMS PRO platform, the files created will also be copied to AIMMS PRO storage, as a subfolder of
An example call is:
1 2 3
gss::pr_SaveState( sp_Label : "ThirdSaveLabel", s_SelectedIdentifiers : Superfluous_Data);