iSeries / AS400 FAQ : (Category) Programming : (Category) CODE/400 : How do I modify the Code/400 Editor behavior and use macros?
The below instructions are for using macros and modifying the CODE editor behavior permanently. In order to use modified macros, create a user macro directory such as C:\My Documents\MyMacros. Then in the editor, hit ESC and type “extras on C:\MyDocu~1\MyMacros”. This will make CODE always look at C:\My Documents\MyMacros before going to C:\WDSC\*. If you want to make profile changes through Options -> Profiles, make sure the *.LXL or *.LXU file you are changing is in C:\My Documents\MyMacros. If you change *.LXL or *.LX in C:\WDSC\*, they can be overwritten from the next version of CODE. In C:\My Documents\MyMacros, the modified “profile.lx” must keep the same name but you should start by creating a blank “rpg400.lxu”, “rpgle400.lxu”, and other user language load files in the C:\My Documents\MyMacros folder and add only the lines for executing user macros. The *.LX macros should go in your MyMacros folder.
Related Questions
- iSeries / AS400 FAQ : (Category) Programming : (Category) CODE/400 : How do I modify the Code/400 Editor behavior and use macros?
- iSeries / AS400 FAQ : (Category) Programming : (Category) WDSC : How do I show all uses of a field in the LPEX editor?
- iSeries / AS400 FAQ : (Category) Programming : (Category) CODE/400 : CODE Support - where to get it?