You are here: LANSA for i User Guide > 3. Files > 3.15 Virtual Fields > 3 15 9 Edit Virtual Field RPG Code

3.15.9 Edit Virtual Field RPG Code

When a section of the virtual field RPG code has been chosen for review or edit a screen will be presented. This screen can be presented by the SEU (edit source) utility.

 

 

                                                                       

 Columns . . . .:   1  71               Edit             QTEMP/EDITWORK

 Find  . . .                                                   EDITWORK

 FMT H  .....H........1..CDYI....S..............1.F....................

        *************** Beginning of data *****************************

        ****************** End of data ********************************

                                                                       

 F3=Exit                   F4=Prompt                 F5=Refresh        

 F10=Top                   F11=Bottom                F24=More keys     

                                    (C) COPYRIGHT IBM CORP. 1981, 1989.

 

 

SEU is provided by IBM and is used to create and manipulate source or text.

SEU is widely used by IBM i programmers and other users. If you are unfamiliar with the features and functions of SEU refer to the appropriate IBM manual.

In addition, SEU has online HELP facilities. Once you have started to use SEU press the HELP key and review the extensive HELP text available.

By using SEU, the RPG code section can be reviewed or edited as desired.

Once all reviewing or editing has been completed use function key 3 to exit from the SEU utility.

A screen similar to this example will be presented:

 

 

                                     Exit                              

 Type choices, press Enter.                                            

 

   Change/create member  . . . . . . .   N            Y=Yes, N=No      

     Member  . . . . . . . . . . . . .   EDITWORK     Name             

     File  . . . . . . . . . . . . . .   EDITWORK     Name             

       Library . . . . . . . . . . . .   QTEMP        Name             

     Text  . . . . . . . . . . . . . .   ____________________________  

  _________________                                                    

     Resequence member . . . . . . . .   Y            Y=Yes, N=No      

       Start . . . . . . . . . . . . .   0001.00      0000.01 - 9999.99

       Increment . . . . . . . . . . .   01.00        00.01 - 99.99    

                                                                       

   Print member  . . . . . . . . . . .   N            Y=Yes, N=No      

                                                                       

   Return to editing . . . . . . . . .   N            Y=Yes, N=No      

                                                                       

   Go to member list . . . . . . . . .   N            Y=Yes, N=No      

 

 

 F3=Exit       F5=Refresh       F12=Cancel                             

 

 

The SEU exit option - change/create member, will be pre-filled to N if you did not change the RPG code section in any way. Otherwise it will be pre-filled to Y.

Normally you would use the option "Y" to change/create member and exit from SEU to return to LANSA. Notice also the option to return to editing. Other options can be used if desired, but you may find that any changes made are lost and the RPG code section remains unchanged within LANSA.

Note that the member, file and library always contain EDITWORK, EDITWORK and QTEMP respectively. This applies no matter what file or section's virtual field RPG code is being edited. This is a special temporary source file that LANSA has created in library QTEMP. These values can be changed if required, but again you may find that any changes are lost and the RPG code section remains unchanged within LANSA.