Creating Context definitions for your own data.  RUN CONTEXT/TOOLS ◦ Application ◦ Application Data File ◦ Master File Record ◦ Context Definition.

Slides:



Advertisements
Similar presentations
Designing Tables in Microsoft Access By Ed Lance.
Advertisements

The basics and troubleshooting tips
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Introduction to ODBC for Business Rules.  What is ODBC?  ODBC – Installing the Drivers  ODBC – Data Sources(BR.INI)  BR Sample Application  BR Context.
Tutorial 8: Developing an Excel Application
1 Chapter 1 & 2 Relational Databases and Queries CS101 WVU.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
Concepts of Database Management Sixth Edition
2015/6/301 TransCAD Managing Data Tables. 2015/6/302 Create a New Table.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Tutorial 11: Connecting to External Data
1 Access Lesson 6 Integrating Access Microsoft Office 2010 Introductory Pasewark & Pasewark.
MS Access Advanced Instructor: Vicki Weidler Assistant:
Context\Context.wb Library Functions.  Data Driven Programming.  Enhance Existing programs.  Quickly Develop new Programs.  Powerful Set of Library.
Microsoft Access Intro Class 1 Database Concepts.
11 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Importing Text Files 2.4 Editing Tables in the.
Building The Database Chapter 2
Access Lesson 2 Creating a Database
Unit J: Creating a Database Microsoft Office Illustrated Fundamentals.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Concepts of Database Management Seventh Edition
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Import Data From Text Files and Other Sources Importing is the process of inserting data.
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
Building Self-Updating Excel Workbooks John Filce and Ward Headstrom Institutional Research & Planning Humboldt State University.
Microsoft Access – Tutorial 2 Designing Databases In this tutorial, we will create a new database create a new table import tables from an existing database.
ENCOMPASS High Volume Process Instructor: –Gerri Williams 8/17/2011.
Common Field Types Primary Key Descriptive Fields Foreign Key.
Data Structure & File Systems Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
1 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Accessing Remote Data 2.4 Importing Text Files.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
ITGS Databases.
XP Chapter 2 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Building The Database Chapter 2 “It is only the farmer.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
MySQL Importing and creating a database. CSV (Comma Separated Values) file CSV = Comma Separated Values – they are simple text files containing data which.
Pasewark & Pasewark 1 Access Lesson 2 Creating a Database Microsoft Office 2007: Introductory.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
SIRxs in Review aka The Joys of XS Presented at SIR-UK Conference Dublin, Ireland, June 2008 © Tom Shriver, DataVisor 2008.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
 A collection of data organized in a way that allows:  Easy access  Easy retrieval of specific data  Easy use of the data.
Data Resource Management Lecture 8. Traditional File Processing Data are organized, stored, and processed in independent files of data records In traditional.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 8-1 LINKS TO OBJECTIVES Import data from another Access table Import data from another Access table.
Survey Training Pack Session 14 – Transferring CSPro, Access and Excel Files to SPSS.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Data Representation.
Unit 9.1 Learning Objectives Data Access in Code
Dealing with External Data
GO! with Microsoft Office 2016
22-INTEGRATION HUB
GO! with Microsoft Access 2016
Chapter 2: Getting Data into SAS
Mastering ArcGIS Attribute Data (Continued)
Data File Import / Export
Learning about Taxes with Intuit ProFile
SIRxs in Review aka The Joys of XS Presented at SIR-UK Conference
Learning about Taxes with Intuit ProFile
Databases and Information Management
Unit J: Creating a Database
Presentation transcript:

Creating Context definitions for your own data

 RUN CONTEXT/TOOLS ◦ Application ◦ Application Data File ◦ Master File Record ◦ Context Definition

 Defines a database or group of Tables.  “Root Directory”.  Required Fields: ◦ APP_ID- Application Code ◦ APP_NAME- Application Name  Optional Fields (Lorica): ◦ APP_PROGRAM- Relative Path for Programs ◦ APP_DATA- Relative Path for Data ◦ APP_SOURCE- Relative Path for Source

 A Table or Data File within the Application.  Required Fields: ◦ FILE_ID- Table ID or Code. ◦ DESCRIPTION- Table Description. ◦ APP_DATA- Relative path for data file. ◦ MASTER- Master Data File Name. ◦ KEY1-KEY9- Index File Names (Optional).  Optional Fields: ◦ Security Group Codes (Not Covered today).

 A Record Layout for a Table  Usually 1 per File/Table (There May be more)  Required Fields: ◦ RECORD_ID- Layout Code (Often Data File). ◦ DESCRIPTION- Layout Description. ◦ PREFIX- 3 Character code “EM_”.  Optional Fields: ◦ PREFIX- Either Prefix or Suffix is required. ◦ SUFFIX- Neither is actually used in ODBC. ◦ RECORD_ID- Used for multiple Record Layouts.

 Actual File Layouts  Each Field is defined with attributes  Required Fields: ◦ FIELD_NAME- 15 Character Code ◦ DISK_STORAGE- Field Type (C,PD,BH,Etc) ◦ DTE_FMT - Date Format (CCYYMMDD) ◦ ORIG_CAPTION- English Description of Field ◦ RECORD_POS- Field Starting Position ◦ RECORD_LEN - Field Length ◦ DECIMAL_POS - Number of Decimal Positions.

 15 Characters.  Duplicated not Allowed.  Codes used within ODBC.  Avoid Spaces and Symbols  Not all Windows Apps can use 15 Characters.  This is a critical design component.  Be Consistent: ◦ Define & use abbreviations (Cty,ST,PH).  These codes will be used for programming.  Dates should include _DATE ot DATE_.

◦ Same as found in your “FORM” Statements. ◦ Field Format:  C- Characters.  PD- Packed Decimals.  N- Numbers.  ZD- Zoned Decimals.  B,BH,BL- Binary Values.  DT,DH,DL- Binary Dates (In Julian or DAYS).  Etc- Other formats work as well!

◦ Defines a Date field, and the format stored in BR. ◦ Field Name “_DATE” or “DATE_” also defines a date. ◦ DTE_FMT is Optional (BR attempts to guess). ◦ Use it anyways, it is less confusing later. ◦ Sample Valid Date Formats:  DAYS  CCYYMMDD  MMDDCCYY  MM/DD/YY  YY/MM/DD

◦ English Description of a Field. ◦ Not actually used within ODBC. ◦ Fill this in, good file layouts are important. ◦ You may find this field usefull within BR.

◦ Required Components to read the field. ◦ RECORD_POS:  Starting Position for Field.  Filler – I usually Name the Field FILLER+POS FILLER201. ◦ RECORD_LEN:  Actual Field Length.  For example PD 6.2 is a 6 Character Packed Decimal.  ODBC will figure out the “True Length”. ◦ DECIMAL_POS:  Number of Decimal Positions.  Only for numbers.

◦ Other Fields are used by Lorica  Window Caption  Window Form  Report Caption  Report Form  Edit Routine  Pack Routine  Unpack Routine ◦ Key Seq – This legacy field refers to indexes.

 Context Manager is delivered with ODBC.  May be Used to Create and Maintain Files.  Is a great way to review existing file layouts.  Creates paper documentation.  Somewhat difficult to automate.

 New Library Delivered with this conference.  Is a Program to Import File Layouts.  Works with Context Manager for use in BR.  Library to be used within existing BR Apps: ◦ Open Tables & Index Files. ◦ Identify Open Tables. ◦ Create Form Statements from Context. ◦ Pack Existing Form Statements. ◦ Open CSV or Tab delimited Files ◦ Parse CSV or Tab delimited Files. ◦ Assign SQL Variables for Program Use.

 FILEAPP.TXT – Tab Delimited File to define Tables.  Required Fields: ◦ APP_ID- Application Code ◦ APP_NAME- Application Name ◦ APP_DATA- Data File Path ◦ FILE_ID- Table Name ◦ DESCRIPTION- Table Description ◦ MASTER- Master File Name ◦ KEY1-9- Index File Names (Optional) ◦ CONTEXT- Path to File Layouts to be imported.  _Context – Sample App “ODBC Layouts”.  Create using Excel, save as Tab Delimited File.

 Create 1 Text file per Table1.  Use MS-Excel or Write your Own Converter.  Required Fields: ◦ FIELD_NAME- 15 Character Code ◦ DISK_STORAGE- Field Type (C,PD,BH,Etc) ◦ DTE_FMT - Date Format (CCYYMMDD) ◦ ORIG_CAPTION- English Description of Field ◦ RECORD_POS- Field Starting Position ◦ RECORD_LEN - Field Length ◦ DECIMAL_POS - Number of Decimal Positions.

 RUN Context\Context.wb ◦ Program will automatically create new records. ◦ Existing Records will be updated. ◦ Run Again to update layouts.  Delivered with this seminar: ◦ FILEAPP.TXT – Sample Application.  Contains ODBC layouts for the Context Manager. ◦ _CONTEXT – Folder containing layouts.

 Create your own FILEAPP.TXT ◦ Define an Application ◦ Define one or more tables ◦ Create layouts for one or more tables.  Still Have Time? look at Context.wb ◦ 30 fnInit_Context – Open tables & define vars. ◦ 40 fnopen_csv – Open FILAPP.TXT.  Intended to make things very simple.  Feel free to enhance routine for other fields.

 [YourFile.txt] – File Layouts for your own File.  Documentation Spreadsheet: ◦ In CONTEXT\Sample Context Fields.xls  Examples in CONTEXT\_CONTEXT folder.  Future Ideas: ◦ Convert your own Layouts to import layout. ◦ Bypass importer, and import directly to context. ◦ Convert Gabriel’s SQL layouts to Context Manger. ◦ Convert Context Manager to Gabriel’s.