<< Click to Display Table of Contents >> SET_TITLE |
![]() ![]() ![]() |
This statement renames a result set. The name of result set created by SELECTION_FILE, SQL SELECTION_FILE or SQL statements is by default the same as the one you can see when the document is created with the dialog of the SmartIS PC Client. You can see the name in document's tab. For instance, the default name of result set in the following picture is "Automic - JobPlan Definition".
Also if the result set is created by LNCMD_EXEC or LNCMD_EXEC_SCAN then the name is taken from this tab. You can simulate your scripts by opening required documents in the program in the standard way from the worklist and from popup menus to know which document names are used.
You can set a new name by calling SET_TITLE statement before a command that returns data is executed. As a result, the created result set has the name you have specified. It is particularly useful if you want to pass the name as a parameter to statements like LNCMD_EXEC, CLOSE and others. Renaming result sets this way gives you much better control over your data.
set_title='automic JobPlans base'
selection_file='test.sel'
create_htm_file='outbif\report.htm'
Any command that returns data resets SET_TITLE option back to an empty value. If you want to use the same name again, you have to call SET_TITLE again.