AS400 Mid Range/AS400

Advertisement


Question
I am a new IT student. Please can you briefly explain how the AS400 supports a database? I am logged on to the AS400 every day at work, but I have no idea how it works.

I need this information for a class paper.

Many thanks..........Donna

Answer
Hi Donna.

The AS/400 is very different from PC-based systems.  In what's called 'native mode' (the mode it was designed to run in), database files (physical files)are compiled from DDS source code that describes each of the fields in the record - a field name, field length, number of decimal positions (if numeric), default column headings, and even sometimes range-checking and validity-checking rules.  When a programmer writes a program that uses one of these files, the program automatically has knowledge of the fields in the file.  The AS/400 also supports what are called logical files, which are intelligent indexes over the physical files, which can automatically select certain records based on values in fields and present the data in any sequence. As data changes in the physical files, logicals can dynamically adjust to reflect the new data in the file.  For instance, if a logical file includes only invoices with a balance amount, when an invoice becomes fully-paid it automatically "drops out" of the logical view.  One key difference between PC and AS/400 databases is that PC files are typically coded using the ASCII method, while AS/400 files are coded using the EBCDIC method.

Hope this information helps!

Laird Scranton
Consultant

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.