RDi Snippets (IBM Rational Developer For I)
RDi Snippets (IBM Rational Developer For I)
RDi/RDp
Templates
Reached through Code assist (Ctrl + Space). Create your own or modify IBMs existing ones.
RDi/RDp
Snippets
Useful for standard blocks like program skeletons, subprocedure skeletons or standard comment blocks. Window->Show view->Other->General->Snippets By default there are no iSeries related snippets. Right click in the Snippet section in the view and select Customize. Click New to add a Category and name it RPG or whatever you fancy. When thats done you can create Items within it. Name the item and click New next to variables to activate variables and set Name, Description and Default value if applicable. Paste in the code you want to be involved in the snippet. Place the cursor in the Template source area and press Insert Variable Placeholder and choose one of your variables. When youre done, Ok your snippet, place the cursor in a source member and double click the snippet item you just created. Fill in your parms and BOOM youre golden