ibm midrange - DB2 AS400 & RPG please explain relationship -
db2 as400 & rpg
please explain relationship in simple way since i'm quite confuse after doing research
so far understand db2 kind of database as400 system written in rpg programming language.
is correct?
the as/400 series (consisting of as/400s @ first, , iseries, system , later systems) has db2 dbms. db2 tightly integrated os , compiled languages used on system. db2 relational dbms may accessed , maintained via sql.
rpg programming language , commonly used language business programming on as/400 series. there 2 common "flavors" of rpg on as/400s: older rpg iii , newer rpg iv. (there can older rpg ii, it's irrelevant question.) you'll see rpg iii referred rpg/400 or opm rpg, while rpg iv referred ile rpg.
opm stands 'original programming model'. ile stands 'integrated language environment'.
those 2 terms apply many compiled languages on as/400 series. so, there ile cobol , opm cobol, ile c/c++ , others. implementation of ile in 1994 allowed various language compilers compile "modules" subsequently bound create "bound programs". ile language call procedures in bound modules compiled other ile language. so, 1 "program" might consist of procedures written in c, rpg, cobol , cl (the compiled 'control language').
database access rpg (and other compiled languages) can done through "native" access methods using verbs such read, write , others; or standard sql statements can embedded such select, fetch, insert/update/delete, etc. either way, database accessed db2 database.
the os 'object based'. because of that, tables , views compiled 'objects', either compiled source code known dds or created sql create table , create view statements. compiled languages can use either older 'native' methods or sql access data in dds or sql-generated files. underlying implementation same, both access methods work either way.
in short, db2 dbms. it's creating , maintaining tables, views , related database objects. may compared oracle or sql server.
and rpg compiled programming language, c or cobol. programmers code rpg programs in order control how users interact db2.
Comments
Post a Comment