Step 3 Use Auto Complete Prompter

Visual LANSA

Step 3. Use Auto Complete Prompter

VED030 - Auto Complete and Command Assistant

In this step you will learn how to use the Auto Complete prompter when entering a SELECT command to retrieve all fields from the PSLMST file. You will see how Auto Complete will show you all parameters for commands. You will begin by deleting the SELECT statement created with the Command Assistant and you will code the following commands:

1.  From the File menu select Options. Select the Source options. Make sure that Auto Complete has been set to Prompter.

2.  Click the OK button to close the LANSA Settings dialog.

3.  Select the SELECT and ENDSELECT statements and press the Delete key.

     You should have a blank line in the editor.

4.  Type S on the blank line. Auto Complete shows a list of commands starting with S:

5.  Press enter to select the SELECT command.

     The Auto Complete Prompter adds the SELECT command with its mandatory parameters to the line. The ENDSELECT command is also added.

    6.  Type P in the From_File parameter.

     Auto Complete displays a list of files starting with P.

7.  Select the PSLMST file and press Enter. The FROM_FILE parameter will be completed.

8.  Use the left arrow key to move to the Fields parameter. Press the spacebar. The Auto Complete drop-down will show the fields from the PSLMST file.

9.  Use the Tab key to select the Special Values tab.

10.  Select *ALL and press Enter.

     The SELECT command definition is complete.

     You may want to try to use the AutoComplete setting Inline which completes your code on the same line as you type. When you are learning RDML, the recommended setting for AutoComplete is Prompter. You may find the Inline option faster once you develop some RDML programming skills.

     You can turn off AutoComplete and then access it when required by using the Ctrl+Space keys anywhere on a command line.