Midrange Systems Design - IBM iSeries i5
System i Snippets
Snippets are small segments of code that you can browse into your program. Example, if you can't remember if %equal or %found is used with setll, read or chain then you can create a source member with an examle of how to do it. All you have to remember is where you stored your snippet. I store all my snippets starting with HELP. Then while I am in PDM or Eclipse I can display a list of these snippets and select the desired one. The following are the snippets I use.
| Member | Type | Type |
| DSNESTING | RPGLE | Data Structure Nesting new |
| DSGROUP | RPGLE | Data Structure Group Fields new |
| SQLCOMMIT | SQLRPGLE | Commitment Controll Options new |
| SQLFETCH | SQLRPGLE | SQL fetch example 2 new |
| HEX | RPGLE | D spec hex codes new |
| HELPARRAY | RPGLE | Object arrays change |
| HELPARRAY2 | RPGLE | 2d 3d, multi dimentional arrays change |
| HELPCALLP | RPGLE | Replacing Call with CallP |
| HELPCALLP1 | RPGLE | Prototype calls |
| HELPCALLP2 | RPGLE | Prototype calls |
| HELPCALLP3 | RPGLE | Prototype calls |
| HELPDATER | RPGLE | Date functions |
| HELPDBG | RPGLE | RPG H spec |
| HELPDEL1 | RPGLE | Delete records- file clean up - by date |
| HELPDEL2 | CLLE | Delete records- file clean up - by date |
| HELPDEL3 | RPGLE | Delete records- file clean up - Orphan |
| HELPDTA | RPGLE | Data Area in/out |
| HELPLDA | CLLE | Local Data Area |
| HELPLDAD | DSPF | Local Data Area |
| HELPMONIT | RPGLE | RPG monitor on-error |
| HELPMSG | CLLE | Send a external message and wait for a response |
| HELPNEXTUP | RPGLE | Auto Increment function |
| HELPOPER | RPGLE | Free Format Operations |
| HELPOPNQC | CLLE | Open Query Select Example |
| HELPOPNQJ | CLLE | Open Query Select Example |
| HELPOPNSQL | CLLE | Open Query File Example |
| HELPPROMP | RPGLE | Display Prompt Screen |
| HELPPROMPD | DSPF | Display Prompt Screen |
| HELPPRT | RPGLE | Print program example |
| HELPPTR | RPGLE | Pointers |
| HELPQCMDEX | RPGLE | CL commands in RPG |
| HELPQMC | CLLE | Query Manager |
| HELPQMCD | DSPF | Query Manager |
| HELPQMJ | CLLE | Query Manager |
| HELPQMSQL | TXT | Query Manager |
| HELPREAD | RPGLE | Free form SetLL, Read, Chain |
| HELPRZ | RPGLE | Right Justify Zero fill a field |
| HELPSBMC | CLLE | Prompt and submit job |
| HELPSBMCD | DSPF | Prompt and submit job |
| HELPSBMJ | CLLE | Prompt and submit job |
| HELPSCAN | RPGLE | Free format %scan |
| HELPSEQBLD | RPGLE | ASC Sequel build SQL statements |
| HELPSEQCAS | TXT | ASC Sequel Case statement |
| HELPSEQEXS | TXT | ASC sequel Where EXISTS statement |
| HELPSEQSBM | CLLE | SQL Submit, prompt output - View,Print,email,file |
| HELPSEQUNI | TXT | SQL union - matching records |
| HELPSORTA | RPGLE | RPG sort aray |
| HELPSQLCNT | SQLRPGLE | SQL Count |
| HELPSQLDOW | SQLRPGLE | SQL day of week function |
| HELPSQLFET | SQLRPGLE | SQL fetch rows |
| HELPSQLFLD | SQLRPGLE | SQL with RPG fields input and output |
| HELPSQLSEL | SQLRPGLE | SQL select statement |
| HELPSQLUPD | SQLRPGLE | SQL Update |
| HELPSQL5RW | SQLRPGLE | SQL performance clauses |
| HELPXLATE | LF | File translation |
| HELPXLATER | RPGLE | RPG %Xlate |