1 Automated Email Editing Electronic Reporting (ER) Steve Kocsis, NOAA Fisheries Juneau, Alaska.

Slides:



Advertisements
Similar presentations
Connecting to Databases. relational databases tables and relations accessed using SQL database -specific functionality –transaction processing commit.
Advertisements

1. 2 Gail Smith Alaska Department of Fish and Game, Juneau eLandings Project Manager Gail Smith Alaska Department of Fish and Game eLandings Project Manager.
DataMigrator 7.7 in Real Time
Input Validation For Free Text Fields ADD Project Members: Hagar Offer & Ran Mor Academic Advisor: Dr Gera Weiss Technical Advisors: Raffi Lipkin & Nadav.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Remote mailbox access gateway Software lab project.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Attribute databases. GIS Definition Diagram Output Query Results.
Technion – Israel Institute of Technology Department of Electrical Engineering Software Lab Remote Mailbox based on.NET technology Michael and Eugene Shamis.
Pro Exchange SPAM Filter An Exchange 2000 based spam filtering solution.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 25 – Perl and CGI (Common Gateway Interface) Outline 25.1 Introduction 25.2 Perl 25.3 String Processing.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
6/1/2001 Supplementing Aleph Reports Using The Crystal Reports Web Component Server Presented by Bob Gerrity Head.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Electronic Mail Originally –Memo sent from one user to another Now –Memo sent to one or more mailboxes Mailbox –Destination point for messages.
Lecture 7 Interaction. Topics Implementing data flows An internet solution Transactions in MySQL 4-tier systems – business rule/presentation separation.
Student Learning Environment on the World Wide Web l CGI-programming in Perl for the connection of databases over the Internet. l Web authoring using Frontpage.
Internet Forms and Database Bob Kisel Amgraf, Inc.
Simple Database.
MOSS Final Presentation -Senior Project-. MOSS Presentation Agenda Project Definition Requirements Analysis System Design Project Plan Code Cop Screen.
Part 1. Persistent Data Web applications remember your setting by means of a database linked to the site.
1. 2 Partnership involving 3 commercial fishery management agencies in Alaska: National Marine Fisheries Service Alaska Department of Fish and Game International.
Chapter 7 Advanced SQL Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Cloud computing for internet emulator. Professor Muthucumaru Maheswaran Team Members Mia Hochar Simon Foucher David El Achkar David El Achkar Marc Atie.
Electronic Reporting of Fisheries Information in Alaska.
Introduction to Test Director
(Chapter 10 continued) Our examples feature MySQL as the database engine. It's open source and free. It's fully featured. And it's platform independent.
Mail Attender for Exchange Technical Overview Presentation Introduction Sherpa Software Group Narrated by Thomas Hand Approximate Time 15 minutes.
Database control Introduction. The Database control is a tool that used by the database administrator to control the database. To enter to Database control.
SeaLandings and eLogbook An Overview of Electronic Reporting.

Copyright © 2010 Certification Partners, LLC -- All Rights Reserved Perl Specialist.
1 ELECTRONIC REPORTING OF FISHERIES INFORMATION IN ALASKA.
8 1 Chapter 8 Advanced SQL Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
CS4710 Why Progam?. Why learn to program? Utility of programming skills: understand tools modify tools create your own automate repetitive tasks automate.
MOSS Design Presentation -Senior Project-. MOSS MOSS Server System 1. MOSS Application 2. Server 3. Client SIU-E Code Cop System 1. SIU-E.
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
Copyright © 2003 ProsoftTraining. All rights reserved. Perl Fundamentals.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
1 eLandings An Interagency Electronic Landing Reporting System Christopher Keller Chief Technology Officer Wostmann & Associates, Inc. October 27, 2005.
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
07/21/97 MOSS Project Introduction and Definition -Senior Project-
Linux Operations and Administration
TOPIC 7.0 LINUX SERVICES AND CONFIGURATION. ROOT USER Root user is called “super user” because it has power far beyond those of mortal user. As root,
Quick Introduction to HTML DB. Accessing HTML DB There are two ways to access HTML DB 1.In the ilearning curriculum, select the red boxed arrow that appears.
1 Electronic Reporting of Fisheries Information in Alaska.
Interactions & Automations
1 Chapter 10: Application Layer Reference: Chapter 7 - “Computer Networks”, Andrew S. Tanenbaum, 4th Edition, Prentice Hall, 2003.
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
1 ELECTRONIC REPORTING OF FISHERIES INFORMATION IN ALASKA.
Lawson Mid-America User Group Spring 2016 Meeting.
Web Database Programming Using PHP
3.1 Types of Servers.
Tutorial 10 Programming with JavaScript
PERL.
3.1 Types of Servers.
Web Database Programming Using PHP
3.1 Types of Servers.
Hidaya Institute Of Science & Technology
Robotic Process Automation Training| RPA online Training at GoLogica
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
Introduction to Programming the WWW I
Building A Web-based University Archive
ORACLE SQL Developer & SQLPLUS Statements
Tiers vs. Layers.
Python’s Standard library part I
Web Application Development Using PHP
Presentation transcript:

1 Automated Editing Electronic Reporting (ER) Steve Kocsis, NOAA Fisheries Juneau, Alaska

2 Electronic Reporting in Alaska Automate the reporting of the North Pacific groundfish and prohibited species catch Receiving and sending daily and weekly reports from/to shoreside plants and vessels Decision-making for closing fisheries Computing discard and by-catch rates

3 Perl as an E.R. Tool Practical Extraction and Report Language, ‘88, Wall Free, GNU GPL, FSF, CPAN DBI and Oracle DBD modules for dynamic SQL MIME module for parsing and sending Regular expression string manipulation

4 E.R. Sequence Client Form Data NMFS Server 1) Get files 2) Unique ID Validate Data Bad files Validation errors Load history Load Host Generate RRT NMFS SERVER Archive

5 E.R. in AK Region 1998-Now * * 2005 extrapolated

6 E.R. In AK Region Now 98% coverage of groundfish shoreside processors Increasing coverage of processing vessels

7 Client data form

8 Client raw data 00,1234,411 03,1234,08/31/2001,N,N,2,N 04,1234,08/31/2001,BSAI,270,P,30, ,N 05,1234,08/31/2001,67890,08/29/2001,F1234,JNU,N,,,Y,,N 06,1234,08/31/2001,67890,08/29/2001,G ,,PTR,47,189,N 07,1234,08/31/2001,67890,08/29/2001,G ,5,655430,110,41,,517,226.,,,N 07,1234,08/31/2001,67890,08/29/2001,G ,4,655430,121,41,,517,171.,,,N 07,1234,08/31/2001,67890,08/29/2001,G ,3,655430,122,41,,517,5.,,,N 07,1234,08/31/2001,67890,08/29/2001,G ,6,655430,141,41,,517,9.,,,N 07,1234,08/31/2001,67890,08/29/2001,G ,2,655430,270,41,,517,3994.,,,N 99 Prefix identifies table: 00- sl_rpt 03 - sl_daily_activity 06- sl_delivery_fish_ticket 07 - sl_delivery_product

9 Table fields...

10 Production tables - shoreside transmitted_data_file sl_rpt sl_daily_activity sl_daily_product sl_buying_station sl_delivery sl_delivery_fish_ticket sl_delivery_product

11 Report types Six types currently supported Identified by file extension (*.era, *.vwp, *.slg, *.cat, *.dev, *.vlr) Modular software gives flexibility for expansion to new types (design feature) Extension couples types to specific functions

12 Client Server Application Timing Sequence 1 User sends data by Read Parse ER files Query Database Use query to create Sql*ldr script for loading ER Data into working tables InternetLAN Perl DBI

13 Timing Sequence 2 Oracle Application LANServer Perl DBI Run sql*ldr script to populate working tables Send sql*ldr command Read and parse error messages Return Error messages Load error tables Archive log and ER files Run sql script and Unix archive commands

14 Timing Sequence 3 Oracle Application LAN Server Run ER validation Package Send Sql Move data in working tables to production tables Client Return Error Messages Archive with FTP Internet Send Sql Generate error report Save report Send with error report to client

15 Perl DBI module ERLSCRIPTERLSCRIPT DBISWITCHDBISWITCH ORACLE DBD PERLAPIPERLAPI PERLSCRIPTPERLSCRIPT Oracle Database *Dynamic SQL *.. File handles, connect/disconnect

16 Perl MIME (Multipurpose Internet Mail Extensions) UNIX mail Perl MIME module Attachments MIME Decoding 1 1 Perl DBI Unique filename by ER type

17 NMFS mailbox Assign unique ID Time scheduled Time stamp Identify ER files Parse & decode attachments Working directory Client Queue ER files for processing slg slg slg

18 Perl regular expressions (regex) Pattern matched to a string – Textual analysis and manipulation /^(.+)\.(.+)$/ $file = $1 $ext = $2 $subject =~ /^Subject: (.+)$/ 8128.slg $file = ‘8128’ $ext = slg Subject: NOAATECH2004 $subject = NOAATECH2004

19 Perl regex /^From\s.+\s\w{3}\s\w{3}\s{1,2}\d{1,2}\s\d{2}:\d{2}:\d{2}\sAK[SD]\s\d{4}$/ From Fri Oct 21 15:15:38 AKD 2003 s/$extpattern$/\.bad/ s/load/mod/;s/ /$fn/; s/$extpattern$// slgload.ctl -> slgmod.ctl -> slg 111.era->111.bad 222.slg->222.bad 111.era-> vlr->222

20 Time scheduled Hfdsihfjkhjkhsfh Fdsjhlkjlfkjsfkjf Dsfhkjfhhsfd Fsdhjsjfdfjsfd Fdjkjgkjgjfgkd Dhfdhffjfhjksf … ER Data files run sql*ldr script Load working tables archive Load errors Load history Type?? Working directory slg *.slg

21 Validation Working tables Validation package Production tables Load history Generate RRT client errors

22 Program Flow 1 NMFS mailbox Get ER attachments Assign unique file name Fetch ER profile sql*ldr ctl file by ER type Time scheduled Import into working tables Data file Ifjkjjjfdsklf Jffkjfkjfksl Fdhfhfh Fshfh fdsjfhfs Client form

23 Program flow 2 sql*ldr bad recordslog records archive load history validation errors Production tables Working tables

24 Program flow 3 Production tables Load history Generate return receipt Find client archive Process with client s/w

25 Summary – Electronic Reporting Improved In-season fisheries management - goals of increased timeliness and reliability have been met Decreased time and cost of reporting for NMFS and industry - widely accepted by industry - NMFS AK region success - Mandatory for many shoreside processors Cooperation with other agencies In operation since 1998 using Perl/UNIX