rpg/400 tables. tables contains related or similar data –same data format organized in columns and...
TRANSCRIPT
RPG/400 Tables
Tables
• Contains related or similar data– Same data format
• Organized in columns and rows
• Uses:– Validation– Decoding
Tables for Validation
• Verify that code or value exists or is acceptable
State Abbreviation
AK
AL
AR
AZ
CA
Tables for Decoding
• Find a related or corresponding value
State Abbreviation State Name Tax Rate
AK Alaska .0000
AL Alabama .0400
AR Arkansas .0000
AZ Arizona .0500
Loading Tables
• Compile time
• Pre-runtime(runtime or execution time)
An RPG/400 Table
• Table namesbegin TAB___
• Extension specificationsE tabcod 50 2 A
• Table look-upC code lokup tabcod 50
RPG/400 Related Tables
• Extension specificationsE tabcod 50 2 A tabnam 14
• Table look-upC code lokup tabcod tabnam 50
Questions?