RPG Bootcamp Session 8: Further Operations and Functions - John Fellner
Topics
- How to Look Up Functions in the Manual (knowledge center)
- Demonstrate Going Down List and Picking a Function
- Explain the Documentation for One of the Functions (fixed, free, factor 1, 2, and result)
- How to Look Up Op Codes in the Manual
- Demonstrate Going Down List and Picking an Op Code
- Explain the Documentation for One of the Op Codes (fixed, free, factor 1, 2, and result)
- Using Op Codes and Functions in Calculations
- Numeric Examples
- %EDITC
- %DEC, %DECH (plus discussion of half adjust)
- %REM
- String Examples
- %SUBST
- %CHAR
- %SCAN
- %CHECK
- %XLATE
- %TRIM (%TRIMR, %TRIML)
- Date Examples
- %DIFF
- %SUBDT
- %DATE, %YEAR, %HOUR (different date and time formats discussed)
- Exercise: CSCSTP Table – Write Procedure to Convert to Proper Case (%SUBST and %XLATE) and Flag if Last Order Date within X Days (%DATE and %DIFF)
John Fellner
Independent Software Consultant
John Fellner is an independent software development consultant for the IBM i and Windows platforms. For many years he did software development and support at the IBM Toronto Lab in the AS/400 / iSeries / IBM i RPG Compilers and Developer Tools area.
Key:
Complete
Next
Failed
Available
Locked