Introduction to RAPTOR: Data Files. Creating and Displaying Data Files. The Redirect_Output Procedure



Similar documents
Utilizing SFTP within SSIS

Microsoft Windows PowerShell v2 For Administrators

LAB THREE STATIC ROUTING

PART-A Questions. 2. How does an enumerated statement differ from a typedef statement?

How To Create PDF Files For Free Under Windows 2000/XP

2 SYSTEM DESCRIPTION TECHNIQUES

LabVIEW Day 6: Saving Files and Making Sub vis

IMF Tune v7.0 Backup, Restore, Replication

Process / Operation Symbols

Gravity Forms: Creating a Form

Java SE 8 Programming

AP Computer Science Java Mr. Clausen Program 9A, 9B

Hands-On UNIX Exercise:

VHDL Test Bench Tutorial

Forensic Analysis of Internet Explorer Activity Files

JAVASCRIPT AND COOKIES

SPSS: Getting Started. For Windows

Using Virtual Drive for Exchange mailbox restore

While Loops and Animations

Visual Logic Instructions and Assignments

IBM Unica emessage Version 8 Release 6 February 13, User's Guide

How to test and debug an ASP.NET application

Data Structure [Question Bank]

Sources: On the Web: Slides will be available on:

2667A - Introduction to Programming

Cluster to Cluster Failover Using Double-Take

Configuring FTP Availability Monitoring With Sentry-go Quick & Plus! monitors

Student Worksheet 1 TI-15 Explorer : Finding Patterns

Policy Guide Access Manager 3.1 SP5 January 2013

Appendix K Introduction to Microsoft Visual C++ 6.0

Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, Introduction 1. 2 Invoking Shell Scripts 2

Mastering Mail Merge. 2 Parts to a Mail Merge. Mail Merge Mailings Ribbon. Mailings Create Envelopes or Labels

Practice Fusion API Client Installation Guide for Windows

2: Entering Data. Open SPSS and follow along as your read this description.

Reference and Troubleshooting: FTP, IIS, and Firewall Information

Deep Freeze Enterprise - Patch Management

Using CertAgent to Obtain Domain Controller and Smart Card Logon Certificates for Active Directory Authentication

An Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories

MAIL MERGE TUTORIAL. (For Microsoft Word on PC)

Appendix B. NAICS Codes, Titles, and Descriptions

Introduction to Python

VDF Query User Manual

Importing from Tab-Delimited Files

FlexStream Introduction. Flex Systems April 2012

AutoMerge for MS CRM 3

UNIX, Shell Scripting and Perl Introduction

HP-UX Essentials and Shell Programming Course Summary

How to Compile, Link, and Execute C or C++ Codes Using Microsoft Visual C++

COMPSCI 105 S2 C - Assignment 2 Due date: Friday, 23 rd October 7pm

Follow these procedures for QuickBooks Direct or File Integration: Section 1: Direct QuickBooks Integration [Export, Import or Both]

ShoreTel Active Directory Import Application

Attracting Visitors to Your Web Site

Using Pharmacovigilance Reporting System to Generate Ad-hoc Reports

Medtech32 InterBase XE Back Up and Restore Guide

Documentum Developer Program

FOPR-I1O23 - Fundamentals of Programming

LabVIEW Report Generation Toolkit for Microsoft Office User Guide

CSC 370 Database Systems Summer 2004 Assignment No. 2

Windows PowerShell Cookbook

A sample script file is displayed below: DRF271.SCR snap.125 grid.5 layer make vports color blue vports. zoom all

AVDC Document Management System Getting Started

Hypercosm. Studio.

We begin with a number of definitions, and follow through to the conclusion of the installation.

Sophos Anti-Virus for Linux user manual

Creating Database Tables in Microsoft SQL Server

Build standalone executables from MATLAB code

Cluster to Cluster Failover Using Double-Take

MATLAB Programming. Problem 1: Sequential

Programming and Software Development (PSD)

A Method for Cleaning Clinical Trial Analysis Data Sets

RARITAN VALLEY COMMUNITY COLLEGE ACADEMIC COURSE OUTLINE CISY 233 INTRODUCTION TO PHP

Data Presentation. Paper Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs

Wavelink Avalanche Mobility Center Linux Reference Guide

Sophos Anti-Virus for Linux configuration guide. Product version: 9

- Python. Get Python from and install on your machine. - py2exe. Get py2exe from

Specialized Programme on Web Application Development using Open Source Tools

DOS Command Reference

How To Encrypt A Traveltrax Report On Gpg On A Pc Or Mac Or Mac (For A Free Download) On A Thumbdrive Or Ipad Or Ipa (For Free) On Pc Or Ipo (For An Ipo)

List of FTP commands for the Microsoft command-line FTP client

T-CONNECT EDI VIEWER. Installation and User Guide 12/16/2014 WE BUILD SOFTWARE THAT HELPS OUR CLIENTS GROW DOCUMENT CREATED BY:

Outline. Unix shells Bourne-again Shell (bash) Interacting with bash Basic scripting References

Integrating VoltDB with Hadoop

Exercise 1: Python Language Basics

Sophos Anti-Virus for Linux configuration guide. Product version: 9

Quick Guide: Troubleshooting Info from SNAP PAC Systems

How to Setup, Install & Run a Website on your Local Computer. For WordPress - on an Offline Server - WAMP

Shell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script

Supplement I.C. Creating, Compiling and Running Java Programs from the Command Window

How To Deploy Microsoft Office 2013 Using SCCM 2012 R2

Quick Guide: CRM Module

User Guide to the Content Analysis Tool

EPM Performance Suite Profitability Administration & Security Guide

Basics of I/O Streams and File I/O

HIC.SOAP Network User Instructions last updated June 22, :39 AM

Running your first Linux Program

SQLITE C/C++ TUTORIAL

Transcription:

Introduction to RAPTOR: Data Files Creating and Displaying Data Files edited from Appendix D: Introduction to RAPTOR In RAPTOR we can create data files and read from the files. However, sorting, inserting records, or merging two data files requires some fancy footwork but if you re very ambitious, try it! The Redirect_Output Procedure To create a data file, you use a Call to the Redirect_Output procedure. RAPTOR provides two versions of this procedure. 1. A filename is used as an argument to Redirect_Output, as shown in the following examples: Redirect_Output("sample.txt") Redirect_Output("C:\MyDocuments\John.Doe\sample") Note that in the first example, only the filename is given. In this case, the specified text file will be created in the same directory as the current RAPTOR program. In the second example, the full path to the file is given. Also, in the second example, no file extension is specified. In this case, the file sample will be created with no extension. 2. You can either turn on or off Redirect_Output by including a simple yes/true or no/false argument, as follows: Redirect_Output(True)or Redirect_Output(yes) Redirect_Output(False) or Redirect_Output(no) Now, the output must be redirected to the data file by using a Call to the Redirect_Output procedure. The name of the data file is used as the argument. This filename must be inside quotation marks (as shown in the examples above). Next, create the code to input data. One variable is required for each field of the records in the data file. The Output box will PUT the value of those variables into each record. For example, to 1 of 5

create a data file with records that have two fields, Name and Salary, two variables are required (probably called Name and Salary). As values for different employees are input, each Name and Salary will be stored in the data file on a single line. After the data has been entered, the Redirect_Output must be turned off. A Call is used to call the Redirect_Output procedure again, but this time it s turned off by using either no or false as the argument. Figure 1 (following page) shows a RAPTOR flowchart that will write two records, each with two fields, to a data file named sample.txt. Figure 2 shows the contents of the file created (and opened in Notepad). The Redirect_Input Procedure To display the contents of a data file, the Redirect_Input procedure is used. This works similarly to the Redirect_Output procedure. In a Call to Redirect_Input, the filename of the file to be read is used as the argument as follows: Redirect_Input("sample.txt") The records are read, normally, within a loop. This is accomplished with GET statements. Input boxes are used to GET each record (in this example, the records consist of the names and salaries). Nothing needs to be entered as a prompt. Output boxes are used to display the output of each record. The output is displayed in the Master Console. 2 of 5

Figure 1 Program to write records to a data file Figure 2 Text file created 3 of 5

The End_Of_Input Function RAPTOR s built in function, End_Of_Input, can be used as the test condition of a loop. When reading records in a data file, if this function is used as the test condition, RAPTOR will end the loop when all the records have been read. When all the records have been read and written to the Master Console, the Redirect_Input procedure must be turned off with a Call to the procedure using False or no for the argument. How the Contents of the File are Stored The Redirect_Input procedure does not separate each field in a record. Rather, each record is stored as one line of string data. Each Input line reads all the fields in one record (or everything that is on a single line in the data file). Therefore, the records can be output to the Master Console but the fields cannot be manipulated easily to sort, insert, or merge. This can be done, but it requires advanced programming. Figure 3 shows a sample of the code to read records from a data file (sample.txt) and the Master Console display. 4 of 5

Figure 3 Reading records from a data file and displaying them 5 of 5