IBC233 Week 6.

Slides:



Advertisements
Similar presentations
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
Advertisements

iSeries Database Files
FileMaker Pro Tami Aune Technology Services Gustavus Adolphus College.
1 R elational D ata B ase A id Copyright © 2002 Sakman Software Corp.
Week 7! Any Questions?. Homework Work on Lab 5, Lab 6 and Lab 7.
Access Lesson 2 Creating a Database
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Attribute databases. GIS Definition Diagram Output Query Results.
1 Intro to the AS/400 Chapter 8 - Data File Utility Copyright 1999 by Janson Industries.
Database Software Application
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1 Created By Martin Schedlbauer
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
Oregon Feature Code. Oregon File Member Setup Done at the district level Runs the physical file information for the district Shouldn’t be too concerned.
Microsoft Access Get a green book. Page AC 2 Define Access Define database.
U:/msu/course/cse/103 Day 04, Slide 1 CSE students: Do not log in yet. Computers are SLOW today! Review days 13.
**Database Notes** New Unit Plan Microsoft Access - known as a database management system or DBMS Database – a collection of organized information. Can.
Presentation © Copyright 2002, Bryan Meyers Externally Described Files Chapter 6.
Data Types and RunSQLSTM. Agenda Lab 1 demo this week –Bring your lab notes! Create your own Data Types Label on Authority RunSQLstm.
AS/400 Concepts & Tools. Day 1 Introduction to the AS/400 Basic Technical Concepts Programming Environment & Tools Programming Development Manager (PDM)
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
Microsoft Access You will need a pen/pencil.. What is Microsoft Access? Access is a database management system.  Create a database, add/change delete.
Introduction to Computers Lesson 10B. home Database A collection of related data or facts.
Introduction to Computers Lesson 10B. home Database A collection of related data or facts.
Chapter 4c, Database H Definition H Structure H Parts H Types.
Copyright © Prentice Hall Database Management Systems Chapter 13 Getting Data Together.
IBC233 Lecture 2 Updated Winter 2008 Agenda Test next Week – Jan 23 ISeries Architecture CL (Control Language) Library Lists Operations Navigator.
Database Management Systems (DBMS)
Any Questions!. Agenda Fun with Functions –how to get the system date –How to get the next service date INDARA and SI Condition Names Iteration Logical.
Database Objective Demonstrate basic database concepts and functions.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
1 Week # 4 Introduction to PDM PDM is a workbench environment that lets programmers and system operators navigate the three levels of the AS/400’s object-based.
1 Welcome! DBT544 students to the iSeries, DB2 Universal Database And SQL interface.
Database Presentation BIM, Mrs. Bailey. **Database Notes** Use new sheet of paper! Microsoft Access - known as a database management system or DBMS Database.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
Edexcel OnCourse Databases Unit 9. Edexcel OnCourse Database Structure Presentation Unit 9Slide 2 What is a Database? Databases are everywhere! Student.
CL Programming with Database Files Updated Summer 2007.
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Databases Chapter 9 Asfia Rahman.
Tour - session 5 Sales Order entry
How’s assignment 1 coming? Winter 2007
Databases.
GO! with Microsoft Office 2016
Practical Office 2007 Chapter 10
Requisitions from Stock
Database Systems Unit 16.
GO! with Microsoft Access 2016
Week 12 Option 3: Database Design
Creating and Using a Database
Data File Import / Export
What is a Database? How is a Database use? How to set up in Access?
Database Vocabulary Terms.
Any Questions?.
More about Databases.
Access Lesson 2 Creating a Database
Data Types and Field Properties
Introduction to Customizing Reports in SAP
The mailroom receives customer orders from customers, where clerks sort orders from the rest of the mail, group them into batches, prepare a transmittal.
Database Fundamentals
Database Design Hacettepe University
Spreadsheets, Modelling & Databases
Topic 12 Lesson 1 – Data and databases
Akhila Kondai Exam-2 overview Akhila Kondai
The ultimate in data organization
ICT Database Lesson 2 Designing a Database.
Microsoft Office Access is the best –selling personal computer database management system. What is Access?
DATABASE TECHNOLOGIES
IBC233 Week 5.
Presentation transcript:

IBC233 Week 6

Homework Lab 4 Part E due June 18 Work on Lab 5 and Lab 7

Agenda Database Files Physical files Logical files

Database Files

DB2 Database Files Physical Files *FILE PF-DTA Logical Files *FILE LF Physical files contain actual data. Logical files show a view of a physical file (I.e. different key field and selection criteria). A logical file does not contain data. Printer files determine how a spool file will be displayed (I.e. fonts, characters per inch etc.) Display files determine how screens such as menus, information and data entry screens well look.

Physical Files It is an system i file used to store data or source code. Physical files have members. The members contain data or source code. Source physical files have many members eg. One for each program Data physical files usually have 1 member (but can have more)

How do we create data physical files?

Creating Physical Data Files Creating an ibm i data file is very similar to creating a program: Write the source code (the source code will describe what the file will look like). The source code is stored in a member in a source file. Compile the source code (this creates a *file object).

Tools for Describing Database Files Data Description Specifications (DDS) system i language to create source code for Files SQL (Structured Query Language DDS is the most popular. Can use utilities SDA (screen design aid) to create DDS screen files and RLU (report layout utility) to create DDS report files.

Layout of a DDS Program File level keywords Record format name Eg. UNIQUE, Function Keys Record format name Shouldn’t be the same name as the object List the fields Name, type, size and functions TEXT (used by DFU and DSPFFD) COLHDG (used by Query/400) Access Path information

Item File Write the DDS code to define a *FILE that has the following attributes: Item Number (5 numeric – 1 digit/byte) Also the primary key Item Name (30 Alphanumeric) Stocking Size (5 Alphanumeric) In Stock Quantity (7 numeric including 2 decimals – 2 digit/byte) Date Last Updated

Unique feature of db2 Files The record description is stored with the file object (externally described file) It can then be used by system i utilities The record description does not have to be coded in programs that use it. Can be viewed using DSPFD, DSPFFD

Entering data If the compile was successful, you will have a new object in your library, a physical file. To enter data into that file, use DFU, Data File Utility UPDDTA

DFU STRDFU, then option 5 or… PDM option 18 F10 to enter new records (entry mode) F11 to change records (change mode), page up and down to find records F23 to delete a record

Viewing records RUNQRY QRYFILE(filename) DSPPFM filename

Allows us to sort or select/omit data Access Paths Allows us to sort or select/omit data

Logical Files

Logical Files Resort data in a physical file Select/Omit specific sets of data Hide data Join or Merge physical files together

Why a logical file A customer file is made up of customer records (1 per customer). Each customer record has fields containing unique pieces of info about a particular customer e.g. customer name, address, sales territory,billing info, shipping instructions, credit information If we want to make sure that the customer id is unique If we want to display customer records sorted by name If we want to select customers in a specific territory If we want to provide a maintenance screen hiding Credit Information

Creating a Logical File Create the source file (CRTSRCPF) which is named QDDSSRC (only done once) Create a source member, type LF Enter the source code using SEU Save source code and compile to create the file Put data into the file.

Create a logical file that sorts Item file by Name and Stocking Size