CAPIX Job Scheduler User Guide



Similar documents
WS_FTP Professional 12

User Guide Microsoft Exchange Remote Test Instructions

JAVS Scheduled Publishing. Installation/Configuration... 4 Manual Operation... 6 Automating Scheduled Publishing... 7 Windows XP... 7 Windows 7...

Zanibal Plug-in For Microsoft Outlook Installation & User Guide Version 1.1

DiskPulse DISK CHANGE MONITOR

NAS 253 Introduction to Backup Plan

Rogue Wave HostAccess 7.40J Installation Guide... 1

Quick Start Guide. IT Management On-Demand

Using Management Shell Reports and Tracking User Access in the NetVanta UC Server

FaxCore 2007 Getting Started Guide (v1.0)

aims sql server installation guide

OneStop Reporting 3.7 Installation Guide. Updated:

Ipswitch Client Installation Guide

Matisse Installation Guide for MS Windows

Active Directory Integration for Greentree

32-Bit Workload Automation 5 for Windows on 64-Bit Windows Systems

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

Appendix F: Instructions for Downloading Microsoft Access Runtime

How to use SURA in three simple steps:

Citrix EdgeSight for Load Testing Installation Guide. Citrix EdgeSight for Load Testing 3.5

How to Configure Windows 8.1 to run ereports on IE11

RFMS, INC. Reference Library Documentation. Version 10 Conversion Manual. Microsoft SQL

Symantec Backup Exec 12.5 for Windows Servers. Quick Installation Guide

Yale Software Library

Case Closed Installation and Setup

HOW TO SILENTLY INSTALL CLOUD LINK REMOTELY WITHOUT SUPERVISION

Matisse Installation Guide for MS Windows. 10th Edition

Installing VinNOW Client Computers

Database Back-Up and Restore

Deployment of Keepit for Windows

Applications Development

SOFTWARE INSTALLATION INSTRUCTIONS

Table of Contents. OpenDrive Drive 2. Installation 4 Standard Installation Unattended Installation

LDAP Server Configuration Example

Using Microsoft SyncToy to Automate Backups

Capture Pro Software FTP Server System Output

Bulk Downloader. Call Recording: Bulk Downloader

Specific Information for installation and use of the database Report Tool used with FTSW100 software.

Remote Management System

4cast Client Specification and Installation

Dove User Guide Copyright Virgil Trasca

SSH Secure Client (Telnet & SFTP) Installing & Using SSH Secure Shell for Windows Operation Systems

PeopleSoft Application Designer Installation Documentation

Title Page. Installation Guide. PowerChute plus Version for Windows 95

Setting Up ALERE with Client/Server Data

Inteset Secure Lockdown ver. 2.0

Installation and Deployment

Technical Bulletin. SQL Express Backup Utility

CYCLOPE let s talk productivity

AdminToys Suite. Installation & Setup Guide

Copyright. Disclaimer. Introduction 1. System Requirements Installing the software 4

Table of Contents. RFMS SQL Backup

Feith Dashboard iq Server Version 8.1 Install Guide

COMBOGARDPRO. 39E Electronic Combination Lock SOFTWARE INSTALLATION INSTRUCTIONS

WinTask x64 Scheduler for Windows 7 64 bit, Windows 8/ bit and Windows 2008 R2 64 bit. Scheduler Quick Start Guide

Scan to SMB(PC) Set up Guide

Out n About! for Outlook Electronic In/Out Status Board. Administrators Guide. Version 3.x

Basic SQL Server operations

How to install and use the File Sharing Outlook Plugin

For Mac User Directions, see page 5

PROCESSES LOADER 9.0 SETTING. Requirements and Assumptions: I. Requirements for the batch process:

How to configure the DBxtra Report Web Service on IIS (Internet Information Server)

UPS WorldShip Install on a Workgroup Remote

Installing Microsoft Outlook on a Macintosh. This document explains how to download, install and configure Microsoft Outlook on a Macintosh.

Migration Strategies and Tools for the HP Print Server Appliance

Windows 7 Hula POS Server Installation Guide

National Fire Incident Reporting System (NFIRS 5.0) NFIRS Data Entry/Validation Tool Users Guide

DocAve Upgrade Guide. From Version 4.1 to 4.5

Upgrading to Document Manager 2.7

Symantec Backup Exec TM 11d for Windows Servers. Quick Installation Guide

Outlook Add-in Deployment Guide

Introducing OneDrive for Business

PaperStream Connect. Setup Guide. Version Copyright Fujitsu

Published. Technical Bulletin: Use and Configuration of Quanterix Database Backup Scripts 1. PURPOSE 2. REFERENCES 3.

Ad Hoc Transfer Plug-in for Outlook Installation Guide

WatchDox for Windows. User Guide. Version 3.9.5

SPI Backup via Remote Terminal

Pendragon Forms Industrial

Batch Eligibility Long Term Care claims

Jabra PC Suite Mass Deployment Guide

TROUBLESHOOTING INFORMATION

What you need to know about DirSync - our experiences with DirSync and Office 365, by David Parizek and Henry Verlander.

for Networks Installation Guide for the application on a server September 2015 (GUIDE 2) Memory Booster version 1.3-N and later

Capture Pro Software FTP Server Output Format

Global Image Management System For epad-vision. User Manual Version 1.10

BUILDER 3.0 Installation Guide with Microsoft SQL Server 2005 Express Edition January 2008

Installation Manual v2.0.0

Infor ERP Baan IV, Baan 5.0, LN 6.1. Installation Guide Infor BW

for Networks Installation Guide for the application on the server July 2014 (GUIDE 2) Lucid Rapid Version 6.05-N and later

KIP AutoCAD Installation and User Guide. KIP AutoCAD Installation and User Guide

for Networks Installation Guide for the application on the server August 2014 (GUIDE 2) Lucid Exact Version 1.7-N and later

Microsoft XP Professional Remote Desktop Connection

7.92 Installation Guide

Protected Trust Journaling Guide. Privacy Security Compliance

Video Administration Backup and Restore Procedures

Legal Notes. Regarding Trademarks KYOCERA MITA Corporation

MapGuide Open Source Repository Management Back up, restore, and recover your resource repository.

Application Note. CRemote Remote Setup

Transcription:

CAPIX Job Scheduler User Guide Version 1.1 December 2009

Table of Contents Table of Contents... 2 Introduction... 3 CJS Installation... 5 Writing CJS VBA Functions... 7 CJS.EXE Command Line Parameters... 8 Windows Task Scheduler... 12 Log File of Events... 17 Copyright 2006 Page 2 of 17

Introduction The CAPIX Job Scheduler (CJS) is a software utility used to allow automatic execution of user-defined tasks and functions. CJS is designed to be installed and configured by technical staff with programming skills. An advanced knowledge of the Microsoft Visual Basic for Applications (VBA) programming language is assumed. The CJS software is not installed as part of other CAPIX applications. It is an additional installation that will cohabitate with other CAPIX software. The purpose of CJS is to allow unattended and automatic execution of tasks and functions in the CAPIX applications. A common use of CJS would be to automatically generate batches of daily reports before the start of each day. CJS could also be used for other tasks such as importing electronic bank statements or market data etc. A stub application program CJS.EXE is executed which specifies an entry-point function to be executed in an MS Access database (CJS11.mdb). Scheduling software, such as Microsoft Scheduled Tasks, is used to run CJS.EXE at the required times and frequency. Implementing CJS involves the following steps: Install the CJS software Write custom VBA functions in CJS11.mdb Add a Microsoft Task Scheduler jobs Copyright 2006 Page 3 of 17

Test and review operation of CJS and custom functions Copyright 2006 Page 4 of 17

CJS Installation The CAPIX Job Scheduler (CJS) software can be downloaded from the CAPIX website (http://download.capix.net/cjs/cjs_setup.exe ). CJS installs using a standard MSI script generated using Installshield. The default installation directory is: C:\Program Files\CAPIX\ This is also the default install folder for other CAPIX desktop software. The following files will be installed in this folder: CJS.EXE is the main executable program file that is used to automatically run CAPIX functions. CJS.log is a log file in ASCII text format that records the results of running CJS.EXE. Check this log file regularly to ensure CJS.EXE is being executed correctly. If CJS.EXE does not execute correctly, details of the error will be written to this log file. CJS11.mdb is an MS Access 2003 (version 11) database file that contains functions to be executed be CJS.EXE. CAPIX_Job_Scheduler_Guide.pdf is an Adobe PDF file containing documentation about using CJS. CAPIX_Sample_Task.job is a sample Microsoft Scheduled Tasks file which can be copied into the Scheduled Tasks folder as an example of how to automatically execute CJS.EXE. Copyright 2006 Page 5 of 17

Note: CJS.exe requires that Microsoft Access 2003 (version 11) or later be installed on the local PC for operation. CJS.exe will operate successfully with either the full or run-time versions of MS Access. Copyright 2006 Page 6 of 17

Writing CJS VBA Functions The CAPIX Job Scheduler (CJS) is a software utility used to allow automatic execution of user-defined tasks and functions. Copyright 2006 Page 7 of 17

CJS.EXE Command Line Parameters The program file CJS.EXE takes a command line function that specifies a VBA function to execute. CJS.EXE allows a VBA function to be executed via a command line parameter. This simplifies the complex task of executing a VBA function within the CAPIX environment and security framework. It is likely multiple Task Scheduler jobs or Program File shortcuts will be created to execute various VBA functions using CJS.EXE. The CJS.EXE application accepts one mandatory parameter and four optional parameters: CJS.exe <Function_name> [Database] [Workgroup] [UserName] [Password] Where: <function_name> - name of the VBA function to execute. This is a mandatory parameter. This parameter should have following format: fnsomefunction( this is sample string param,4567,34567) where fnsomefunction is sample VBA function inside MS Access module, which has 3 arguments: first string argument and two integer arguments. Or simply: fnsomefunction2(), if function does not have any arguments. Copyright 2006 Page 8 of 17

Also, please follow following rules when specifying function arguments: 1). All function arguments must be included in the parenthesis. 2). Arguments must be separated with coma. 3). Do not use spaces between arguments (before or after coma). 4). Only 2 types of function arguments are supported: text and integer. 5). All text arguments must be wrapped with single quote ( ) characters. You can use spaces only inside text arguments. 6). NOTE: If you used spaces in this first parameter (e.g. in one of the function arguments) you must wrap it with double quotes ( ), for example: CJS.exe fnsamplefunction( hello world and bye,545) [Database] - name of the database to open. This is an optional parameter which allows multiple MS Access databases to be used. NOTE: if path to the database contains spaces you must include it within double quotes ( ) characters, e.g. CJS.exe fnsomefuntion() C:\Program files\some path\some_db.mdb Default value is C:\Program files\capix\cjs11.mdb Copyright 2006 Page 9 of 17

[Workgroup] path to the security workgroup file (.mdw) to be used. This is an optional parameter. Default value is C:\Program files\capix\capix.mdw [UserName] valid username within above workgroup file. This is an optional parameter. If you change default location of the workgroup file you must supply valid username as well. [Password] valid password within above workgroup file. This is an optional parameter. If you change default location of the workgroup file you must supply valid password as well. For example, if a VBA function called gfnsamplefunction() was defined in the CSJ11.mdb database, this function could be executed directly from the command line using the following syntax from the command prompt or a short cut: C:\Program Files\CAPIX\CJS.EXE gfnsamplefunction() Copyright 2006 Page 10 of 17

In this example CJS.EXE will Start CJS.EXE Open CJS11.mdb Initiate OLE automation Acquiring the pointer to Access.Application COM object. Execute the target function i.e. gfnsamplefunction() Close CJS11.mdb Exit CJS.EXE Copyright 2006 Page 11 of 17

Windows Task Scheduler There are several different software packages that can be used as schedulers in conjunction with CJS.EXE. We recommend the standard Windows Task Schedule software as is comes standard with Windows, does the job well and is free. Other similar software packages could also be used. To start the Windows Task Schedule software, select the following menu items from the Windows start menu: Start Menu Accessories System tools Scheduled Tasks Copyright 2006 Page 12 of 17

Copyright 2006 Page 13 of 17

Copyright 2006 Page 14 of 17

Copyright 2006 Page 15 of 17

Copyright 2006 Page 16 of 17

Log File of Events Every time CJS.EXE is executed, the application results are written to a log file CJS.log. The full path to this ASCII text file is: C:\Program Files\CAPIX\CJS.log A time stamp shows when each entry in the log file was generated. The results for both errors and successful completion of the tasks are stored in this log file. It is recommended that CJS.log be reviewed regularly to ensure the tasks run using CJS.exe are being completed as expected. CJS.log is also a useful tool for testing new jobs being written for CJS.exe. All successfully executed jobs are marked with JOB INFO prefix at the beginning of the log line. All errors are marked with ERROR: prefix. The test file CJS.log may be periodically deleted or cleared if the existing entries are no longer required. CJS.exe will create a new log file if none already exists. CJS.exe will automatically remove and create new log file if the size of the existing CJS.log has grown to 10MB. Copyright 2006 Page 17 of 17