Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[ Image Removed |../../index.htm#lansa/ugub_50086.htm]
You are here:

...

When the option to 'Define substitution variables used in list' is chosen from the Work with Export List Menu a screen similar to the following example is used to manipulate the export list:

 
 DC@P620011        Define Substitution Variables                       
                                                                       
                                                                       
 List       : TEST2   Export details in compiled form                  
                                                                       
 Variable  Substitution value / Default value       Prompt user    
   Name    Prompt text to display if prompt req  When importing  
 $$DTALIB$$ _______________________________________      Y          
 Specify library to which database files are to be imported  
                                                                       
 $$SYSNAM$$ _______________________________________      Y          
 Specify the 4 letter prefix/name of your system               
                                                                       
  ______  ______________________________________                
  ____________________________________________________
                                                                       
                                                                       
 Fnn=Help  Fnn=Exit  Fnn=Cancel  Fnn=Messages                          
                                                                      
 

 |
A substitution value is a symbolic name that can be used:

...

This example uses the shipped system variable *PARTDTALIB (Partition Data Library) as a default value for the substitution value. When this list is imported this system value will be set to the correct library name (e.g.: DC@MODLIB) and then the operator will be prompted with DC@MODLIB as the default reply because 'Prompt' is Y (yes).

 
Variable  Substitution value / Default value    Prompt user
  Name    Prompt text to display if prompt req  When importing  
 
$$DTALIB$$ *PARTDTALIB                                   Y  
 
Specify library into which database files are to be imported
 
 
 

 |
However, this example uses the shipped system variable *PARTDTALIB, but specifies N (no) for 'Prompt'. This means that the substitution value will be set to the partition data library name and then the import will proceed without asking the operator to confirm this value.

Variable   Substitution value / Default value    Prompt user
  Name     Prompt text to display if prompt req  When importing  
 
$$DTALIB$$ *PARTDTALIB                                   N
 
Specify library into which database files are to be imported
 
 

 |
Any shipped LANSA system variable that is evaluated by program M@SYSVAR, or any user defined system variable at all, can be used in this manner.
Only alphanumeric system variables up to a maximum length of 50 characters should be used this way.
[ Image Removed |../../index.htm#lansa/ugub_50086.htm]