Technical Strategy and Solutions BASE PROFESSIONAL. V e r s i o n 1. 0 P a g e 1

Similar documents
A Guide to Quark Author Web Edition 2015

At the shell prompt, enter idlde

Zend Studio 3.0. Quick Start Guide

VERSION JANUARY 19, 2015 TEST STUDIO QUICK-START GUIDE STANDALONE & VISUAL STUDIO PLUG-IN TELERIK A PROGRESS COMPANY

Content Publisher User Guide

Getting Started (1.8.7) 9/2/2009

Work Smart: Microsoft Office 2010 User Interface

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

BDM Hyperion Workspace Basics

Part I. Integrated Development Environment. Chapter 2: The Solution Explorer, Toolbox, and Properties. Chapter 3: Options and Customizations

WPS Workbench. user guide. "To help guide you through using the WPS user interface (Workbench) to create, edit and run programs"

IBM ILOG OPL IDE Reference

OpenForms360 Validation User Guide Notable Solutions Inc.

with TestComplete 12 Desktop, Web, and Mobile Testing Tutorials

Infor LN Studio Application Development Guide

WPS Workbench. user guide. To help guide you through using WPS Workbench to create, edit and run programs. Workbench user guide Version 3.

Discovering Computers & Microsoft Office Office 2010 and Windows 7: Essential Concepts and Skills

TABLE OF CONTENTS. 2 ADDING, REMOVING, AND RESIZING FRAMES IN A FLEX DOCUMENT. 4 ADDING SHEETS. 6 STACKING APPS. 8 SHOWING/HIDING APP TOOLBARS.

AutoCAD 2009 User InterfaceChapter1:

The Basics of Visual Studio Code

Lab 1: Getting familiar with LabVIEW: Part I

MarkLogic Server. Query Console User Guide. MarkLogic 9 May, Copyright 2018 MarkLogic Corporation. All rights reserved.

BasicScript 2.25 User s Guide. May 29, 1996

Precision Consulting 228 PARK AVENUE SOUTH NEW YORK, NY PHONE: FAX:

Manage Files. Accessing Manage Files

Appendix J: Using Shortcut Keys and Shortcut Menus

MarkLogic Server. Query Console User Guide. MarkLogic 9 May, Copyright 2017 MarkLogic Corporation. All rights reserved.

Workshare Compare 9.5

Intro to MS Visual C++ Debugging

Getting started 7. Setting properties 23

StarTeam File Compare/Merge StarTeam File Compare/Merge Help

A Quick Tour GETTING STARTED WHAT S IN THIS CHAPTER?

Getting started 7. Writing macros 23

Eclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang

Lectora Video Editor Information Center

3 Getting Started with Objects

Using the VMware vcenter Orchestrator Client. vrealize Orchestrator 5.5.1

PENTAHO - NAVIGATION

SharePoint 2010 Instructions for Users

Enterprise Architect. User Guide Series. Model Navigation

Quark XML Author for FileNet 2.5 with BusDocs Guide

Eclipse Quick Reference Windows Hosted

Migration from HEW to e 2 studio Development Tools > IDEs

Patrice M. Anderson Instructional Designer

Anatomy of a Window (Windows 7, Office 2010)

Lectora Audio Editor Information Center

Microsoft Office 2013 (or Office) is a collection of software programs.

BASIC USER TRAINING PROGRAM Module 5: Test Case Development

Reporting Center. Primary (Stand-Alone) Interface

Easy Windows Working with Disks, Folders, - and Files

Getting started 7. Setting properties 23

Workshare Professional 9.5

Quark XML Author September 2016 Update for Platform with Business Documents

Getting Started. Microsoft QUICK Source 7

DiskBoss DATA MANAGEMENT

Quark XML Author October 2017 Update for Platform with Business Documents

NetBeans Tutorial. For Introduction to Java Programming By Y. Daniel Liang. This tutorial applies to NetBeans 6, 7, or a higher version.

Workshare Compare 9.5

Enterprise Architect. User Guide Series. Portals. Author: Sparx Systems. Date: 19/03/2018. Version: 1.0 CREATED WITH

IBM Rational Rhapsody Gateway Add On. User Guide

Talend Open Studio for MDM Web User Interface. User Guide 5.6.2

Drools Tools Reference Guide. Version: CR1

Reviewing Changes. 5. Click Search. A list of changes that include the specified word or words is displayed in the lower text area.

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide

Workspace Administrator Help File

Reading: Managing Files in Windows XP

Using the VMware vrealize Orchestrator Client

Getting Started with OneNote 2016

Content Author's Reference and Cookbook

The purpose of this tutorial is to introduce you to the Construct 2 program. First, you will be told where the software is located on the computer

News in RSA-RTE 10.1 updated for sprint Mattias Mohlin, November 2017

EUSurvey 1.4 Editor Guide

Using SQL Developer. Oracle University and Egabi Solutions use only

Rapid SQL 7.5 Evaluation Guide. Published: September 28, 2007

News in RSA-RTE 10.1 updated for sprint Mattias Mohlin, April 2017

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

Getting Started with Tally.Developer 9

Application Notes for Deploying a VoiceXML Application Using Avaya Interactive Response and Audium Studio - Issue 1.0

Microsoft Office Outlook 2007: Intermediate Course 01 Customizing Outlook

MetaMap Manager User Guide

WORKSHARE PROFESSIONAL 9

Enterprise Architect. User Guide Series. Model Navigation. Author: Sparx Systems. Date: 30/06/2017. Version: 1.0 CREATED WITH

WORKSHARE 9 & NETDOCUMENTS

IBM Rational Rhapsody Gateway Add On. Tagger Manual

Module 3: Working with C/C++

Module Road Map. 7. Version Control with Subversion Introduction Terminology

IBM i Debugger. Overview Service Entry Points Debugger Functions Attach to an IBM i Job Launch Configurations and Settings

Logi Ad Hoc Reporting Management Console Usage Guide

Function. Description

With Dreamweaver CS4, Adobe has radically

Configuration Export and Import

Macros in Excel: Recording, Running, and Editing

IBM Rational Rhapsody Gateway Add On. User Manual

Introduction to Programming

QuickStart Across Personal Edition v5.5 (Revision: November 8, 2012)

1 Introduction to MARS

INFORMZ USER GUIDE: The Asset Manager

INVU SERVICES LTD GETTING STARTED GUIDE FOR SERIES 6

Skills Exam Objective Objective Number

Using Eclipse for Java. Using Eclipse for Java 1 / 1

Transcription:

BASE PROFESSIONAL V e r s i o n 1. 0 P a g e 1

Contents 1 Overview... 3 1.1 STARTING PROFESSIONAL 3 1.1.1 Professional Window... 4 1.1.2 Menus... 6 1.2 FILE TYPES WITH PROFESSIONAL 6 1.3 PROFESSIONAL TOOLBARS 7 1.4 CREATING A NEW SURVEY 7 1.4.1 Metadata... 8 1.4.2 Web - Routing Section... 9 1.5 OPENING AN EXISTING SURVEY 9 1.6 SAVING AND CLOSING A SURVEY 9 1.7 TOOLS IN DETAIL 9 1.7.1 MetaData or MDM Explorer... 9 1.7.2 Locals Pane... 11 1.7.3 Using the Expressions Pane... 12 1.7.4 Breakpoints... 13 2 Change Control... 15 V e r s i o n 1. 0 P a g e 2

1 OVERVIEW Professional is a complete set of tools that supports the building of automated market research processes. Professional includes an integrated development environment (IDE) that enables you to create, edit, run, and debug PASW / Dimensions scripts. In simple terms this is computer software that assists programmers in developing scripts. Two additional options are available for Professional: The Interview Option includes components that enable you to develop and test interviews, and activate them in Interviewer Server. The Tables Option includes components that enable you to create batch tables using a script. 1.1 STARTING PROFESSIONAL To launch Professional, follow the steps below: Start (From the bottom left corner of Windows) All Programs IBM SPSS Data Collection 6 Base Professional Base Professional V e r s i o n 1. 0 P a g e 3

1.1.1 Professional Window The individual panes are described in more detail in the table below. Tab Panel Edit Description This is the main part of the desktop, where you edit your files. If you open an interview script (.mdd) file, the Edit pane is separated into a Metadata section and one or more Routing sections. By default, the individual sections can be selected by clicking on the tabs at the bottom of the Edit pane. Breakpoints Lists the breakpoints that have been set in a script. When you are debugging, you use breakpoints to indicate points in your code at which you want to suspend the running of the script--for example, so that you can V e r s i o n 1. 0 P a g e 4

Tab Panel Description then step through the following lines. Output Displays status and other information when you run a script using F5. Use this pane to evaluate an expression or inspect the value of a object property when you are debugging a script. You can also use this pane to change the value of a variable. You can also use the Expression pane to Expressions change the value of a variable. For example, if you type a = 15 into the text box and press Enter (or alternatively, click Execute), Professional will set the value of the variable to 15. Find Replace Browser Workspace Metadata Types Functions Locals Auto Answer Repository Help Use to search for text. Use to search for text and replace with a different text. Use this pane to interact with the interview when you run an interview script (.mdd) file. Lists the files in the current workspace. The workspace feature is particularly useful when you are working on a number of linked files--for example, a data management script (.dms file) that has a number of associated Include files. You can add new and existing files to the workspace by right-clicking in the Workspace pane and choosing Add New Item to Workspace and Add Existing Item to Workspace, respectively. See the topic Using the Workspace Feature for more information. Use to browse the questions, variables, and categories in a metadata document (.mdd) file. This is useful when you need to refer to individual variables and categories in your script. Similar to the Visual Basic Object Browser, this shows the properties and methods of all of the default objects and details of the associated enumerated constants. Similar information is shown whenever possible for objects created in the script. When you click on an object, its properties and methods are listed. To insert a property or method into your code, rightclick it, and from the shortcut menu, choose Add member. Lists all of the functions in the Data Collection Function Library, showing brief details of their parameters. To insert a function into your code, rightclick it, and from the shortcut menu, choose Add Function. For detailed information about the functions, see PASW Data Collection Function Library. Shows the values of the variables in your script when you are debugging it. Shows a list of the questions that have been answered when you run an interview script (.mdd) file in Auto Answer mode. Shows all currently defined Question Repositories. You can navigate for topics and survey assets, and add asset metadata and routing information to the working.mdd file. Shows context-sensitive help topics. To access context-sensitive help, select an element of your script and press F1, See the topic Using Context- Sensitive Help for more information. V e r s i o n 1. 0 P a g e 5

1.1.2 Menus We will quickly get you familiar with the menus that exist. You will get to see more of them throughout the course. Menu File Edit View Debug Tools Description This is a standard file menu with features like open, close and new. This is a standard edit menu with features like cut, copy, paste and undo. You can control what toolbars and Panels you can see from this menu. This menu contains items related to the testing of scripts or surveys. This menu provides access to additional tools and macros. Also the access point to Professional options. Window The Windows menu allows you to switch between open scripts and surveys. Help The help menu allows you to open the DDL from inside Professional. 1.2 FILE TYPES WITH PROFESSIONAL Professional has been designed for working with PASW / Dimensions script files of the following types: Interview Script (.mdd) files These scripts are used to create interviews that can be activated in version 3.0 (or later) of Interviewer Server. Interview scripts have a Metadata section, and one or more Routing sections. The Metadata section is used to define the questions that will be asked during the interview and is written in mrscriptmetadata. A Routing section is written in mrscriptbasic and defines which of the questions will be asked during an interview, and in what order they will be asked. You can have individual routing sections for different interview environments, for example, "Web" and "Paper". mrscriptbasic (.mrs) files. mrscriptbasic is a programming language that enables scriptable access to PASW / Dimensions components. You would typically use a standalone mrscriptbasic script to perform tasks that do not involve transforming data, such as creating reports, topline tables and charts. Sometimes you might develop a mrscriptbasic script for use as an Include file in one of the Event sections of a data management script. You can run and debug your mrscriptbasic scripts from the Professional IDE or by using the mrscript Command Line Runner. V e r s i o n 1. 0 P a g e 6

Data Management Script (.dms) files These scripts are used for performing data management tasks, such as cleaning and transferring data, creating derived variables for use during analysis, and setting up weighting schemes. A data management script has two or more different sections, which have different coding rules and use different technologies. For example, the InputDataSource section uses property definition and SQL syntax, whereas the Metadata section is written in mrscriptmetadata, and the Event sections are written in mrscriptbasic. A data management script is particularly useful when you want to clean and transfer data and create derived variables, because it handles the connections to the input and output data sources, the merging of the metadata, and gives you scriptable access to the case data (in the OnNextCase Event section). You can run your data management scripts from the Professional IDE or by using the DMS Runner command prompt utility. In addition to PASW / Dimensions scripts, you can also use Professional to create and edit the following types of files: Text (.txt) files HTML files XML files Rich text format (.rtf) files You can also open other types of text files, such as log files. 1.3 PROFESSIONAL TOOLBARS Details can be found at mk:@msitstore:c:\program%20files\spssinc\paswdatacollection5.6\ddl\documentati on\ddl.chm::/professional_toolbars.htm 1.4 CREATING A NEW SURVEY If you do not have Professional open, please launch it now. 1. From the File menu choose: New > File... 2. The New File dialog shows you a list of available file types. Click the item labeled Metadata File. 3. In the bottom section of the New File dialog is the File Name, this probably reads Untitled1.mdd. Change this to MyFirstInterview.mdd and click the Open button. 4. Professional has created your new file. A Metadata file, also referred to as the MDD, is the name of the survey file type. It contains all your questions, responses, languages and survey logic. The survey edit is now available. On the bottom left corner you will see two tabs, Metadata and Web. V e r s i o n 1. 0 P a g e 7

1.4.1 Metadata The Metadata section is where you will define the questions and responses that will make up your survey. The Metadata editor should look like below: Metadata(en-GB, Question, label) End Metadata Always having three arguments passed on the Metadata function: en-gb: the locale or base laungauge for the interview Question: is the context Label is the label type NOTE: It is not mandatory to specify the language, context, or label type, as defaults will be used if they are not provided. See below table for detailed explanation. Positional Parameter Language(en-US) Context (Question) LabelType DataSource (NOT in IOM) Description The language portion of the line (shown here as en-us) will vary according to the regional settings for your computer. For example, if your regional settings are set for the UK you will see en-gb instead. Defines the current user context for the metadata. User contexts define different usages for the metadata, so that different texts and custom properties can be used depending on how the metadata is being used. For example, the Question user context is typically used to define the default texts to be used when interviewing and the Analysis user context is typically used to define shorter texts for use when analyzing the response data. Defines the current label type. Label types enable different types of labels to be created for different types of information. For example, the default label type of Label is used for question and category texts and variable descriptions, and the Instruction label type is used for interviewer instructions. This parameter, used only when the Metadata section is part of a Data Management Script (.dms) file, identifies the data source to which the Metadata section relates. You specify the data source using the name defined for the InputDataSource section in the Data Management Script. V e r s i o n 1. 0 P a g e 8

1.4.2 Web - Routing Section The Web Routing section is where you define the order in which questions are asked and the circumstances in which they should be asked. A script can have different Routing sections for different contexts, such as Web, CATI and Paper. The default context is Web, so you see a Web Routing tab. When initially created the Routing section of an MDD contains the following script: Routing(Web) End Routing 1.5 OPENING AN EXISTING SURVEY From the File menu choose: Open > File Browse to the required file and click the open button in the bottom right hand corner NOTE: Notice that inside Professional along the top you still have your "MyFirstInterview" file open. You can switch between surveys by clicking on the tabs at the top of the editing window. 1.6 SAVING AND CLOSING A SURVEY To save your file: 1. From the File menu choose: Save. If this is a new file it will open a standard Save As box for you to choose the location to save the file in. 2. Alternatively from the File menu choose: Save As to save your file with a different name or to a different location. This will open a standard Save As box. When you run a survey it will also check whether it has been saved since you last made changes, and if not it will try to save it. To close your file: 1. From the File menu choose: Close 2. If you have made edits since you last saved your file you will be shown a dialog box asking if you want to save your changes. If you click Yes it will open a standard Save As box. 1.7 TOOLS IN DETAIL 1.7.1 MetaData or MDM Explorer MDM explorer use to explore the variable and object in MDD. V e r s i o n 1. 0 P a g e 9

To Open Search for shortcut on desktop (see below). Double click the icon. If no Shortcut on desktop then check Program Files\SPSSInc\PASWDataCollection5.6\DDL\Code\Tools\VB6\MDM Explorer\MDM Explorer.exe" Explorer window Open file file -> Open Document There is a short delay while the file is loaded. You can now explore the structure of MDM Document. For example, to display the objects that correspond to the questionnaire items, expand the Fields folder. MDM Explorer displays a never-ending loop for Variables and VariableInstances - A VariableInstance object has a pointer to a Variable object and the Variable object has a collection of related VariableInstance objects. MDM Explorer merely reflects the properties on each object. This means that you can open an endless list of Variable and VariableInstance objects. V e r s i o n 1. 0 P a g e 10

1.7.2 Locals Pane While debugging a script, Professional displays in the Locals pane the current value of all of the variables in the current scope. In addition, Professional shows in the Locals pane the current value of the properties of the objects in the current scope. You can expand and inspect objects by clicking the plus icon next to the object, but note that an object can only be expanded while the script is halted during debugging, not when the script has completed. V e r s i o n 1. 0 P a g e 11

1.7.3 Using the Expressions Pane You can use the Expressions pane to evaluate an expression or to inspect the value of an object's properties. There are two ways of doing this: 1. Type the expression in the text box and click Evaluate. 2. Type a question mark, then type the expression and press Enter. For example, type?a and press Enter to display the value of the a variable. You can also re-evaluate an expression that you previously evaluated by selecting the text of the expression in the text box and clicking Evaluate. For example, here is the Expressions pane after using the Sqrt function to evaluate the square root of the a variable: V e r s i o n 1. 0 P a g e 12

Note that sometimes you might need to resize the pane in order to be able to see the output. Here is the Expressions pane after evaluating the label of q2 : You can also use the Expression pane to change the value of a variable. For example, if you type a = 15 into the text box and press Enter (or alternatively, click Execute), Professional will set the value of the a variable to 15. The Expression pane can also be used to declare variables, which you can then use to store the current value of another variable when you are debugging a script. For example, type dim temp in the text box and press Enter to declare a variable called temp. Then assign the value of a to temp by typing temp = a and pressing Enter. To restore the original value of a at any point, type a = temp and press Enter. 1.7.4 Breakpoints Breakpoints are added into code at the points where you want the execution to stop/hault, so that you can step through the following lines. This is particularly useful when you have a rough idea where the problem lies. How to add - either of ways listed below Choose Toggle Breakpoints from the Debug menu. Press Ctrl+B or F9 Click the Edit pane to the left of the line number. V e r s i o n 1. 0 P a g e 13

Professional then highlights the line in red and adds the breakpoint to the list in the Breakpoints pane. To run the code up to the next breakpoint, press F5 or choose Start or Continue from the Debug menu. To run single Line step to following code press F10. To clear a breakpoint, follow any one of below steps:- Choose Toggle Breakpoints from the Debug menu. Press Ctrl+B or F9 Click the Edit pane to the left of the line number. To clear all breakpoints, press Ctrl+Shift+F9 or choose Clear All Breakpoints from the Debug menu. V e r s i o n 1. 0 P a g e 14

2 CHANGE CONTROL This Document may have been through various revisions. This table shows updates over time and details any specific updates Change Summary Date Doc Change detail Version Document Launch 02 Apr 2012 V1.0 Initial document launch V e r s i o n 1. 0 P a g e 15