You are on page 1of 28

Jethro Ltd

Knowledge Impact Center

www.jethroltd.com
www.jethroltd.com
Agenda

1. jBASE Administration

2. jBASE Programming

3. T24 Development

4. T24 Architecture

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Introduction

www.jethroltd.com
www.jethroltd.com
jBASE Administration

What You Will Learn In This Session


What is jBASE?
The T24 architecture – An overview
Logging on to jBASE
jBASE directory structure
jBASE daemons
jBASE environmental variables
jBASE .profile file

www.jethroltd.com
www.jethroltd.com
jBASE Administration

 jBASE Database
Post Relational Database Management System
Supports multi value and sub value (Non fixed length
fields)
Development environment
Create ,compile and execute programs
Extension of the operating system
jsh (jshell – Can execute most of the operating system
commands)
Open database – Can communicate to other databases
jEDI Driver
Uses the ‘C’ compiler to compile code
T24 uses jBASE Database to store data

www.jethroltd.com
jBASE Administration

 jBASE Runtime
Run time environment of j4 (Like JRE)
T24 resides on the jBASE Run Time Environment
Enables T24 to communicate with j4 (database)
Embedded as part of j4

www.jethroltd.com
jBASE Administration
 T24 /jBASE Architecture – An Overview

User

T24 (Application)

jBASE Run time


j4

Unix/Windows
(Operating System)

www.jethroltd.com
jBASE Administration
 Logging Onto jBASE

Log on to Unix

User name and password are verified (/usr/etc)

.profile file is executed from the home directory of the user

.profile has the jBASE environment set

www.jethroltd.com
jBASE Administration
 jBASE Directory Structure

/jbase<release number>

bin config lib tmp dev

jspooler
Does not get installed automatically

www.jethroltd.com
jBASE Administration

jBASE Directory Structure

Below JBCRELEASEDIR (/usr/jbc, c:\jbase30)


 config - Configuration information
 dev - Device control files
 src - Example source code files
 include - Include header files for compilation
 bin - Binary executables. jBASE commands
 lib - Shared libraries
 man - Man pages for Unix, html help for Windows
 tmp - Work file directory for runtime
 misc - terminal definitions for Windows
 samples - OBjEX examples for Windows
/usr/jspooler (Unix), c:\jspooler (Windows)

www.jethroltd.com
www.jethroltd.com
jBASE Administration

Logging on to jBASE

 All users are assigned a port when they log on to the


server

 jBASE assigns port when user logs in

 Port numbers are picked up from a file called “port0-499”


found under the “$JBCRELEASEDIR/proc” directory

 Set the environment variable JBCPORTNO in the .profile


to a certain value if you always to use a particular port
number
 JBCPORTNO = 1000-1005
 JBCPORTNO = 1000,1001,1002,1003,1004,

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

Used to help jBASE


Locate files
Locate c compiler
Identify user name and port if necessary
Define emulation
Establish paths
Determine restart programs

Set universally and/or by individual user


at logon

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 JBCRELEASEDIR
 Holds the directory where jBASE has been installed.

 JBCRELEASEDIR = /usr/jbc

 Link is usually created to point to the directory where


jBASE has been installed to facilitate configuration of
profiles and upgrading jBASE

 ln –s /jbase415 /usr/jbc

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 JBCGLOBALDIR
 Contains the path to the config directory of jBASE

 JBCGLOBALDIR = /usr/jbc

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 JBCDEV_BIN
 Path where jBASE places your cataloged programs
 Default HOME/bin

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 JBCDEV_LIB

 Path where jBASE places your cataloged subroutines and


functions
 Default HOME/lib

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 JBCOBJECTLIST

 Search path locating user subroutines


 This is used during program execution
 Typically the same as JBCDEV_LIB

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 PATH
 Unix variables
 Holds the path of the executable files of Unix and jBASE

 PATH = $PATH:/usr/jbc/bin

 Always APPEND values to the PATH variable

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 LIBPATH
 Holds the path of the jBASE library files

 Operating system specific

 Temenos convention
 All the 3 variables are set in the .profile file or the
remote.cmd file. J4 picks up the appropriate variable
depending on the operating system

 LIBPATH = /usr/jbc/lib (AIX)


 SHLIB_PATH = /usr/jbc/lib (HP)
 LD_LIBRARY_PATH = /usr/jbc/lib (Others)

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 JBCSPOOLERDIR
 Holds the path to the spooler directory of jBASE

Option 1 : JBCSPOOLERDIR = /usr/jspooler


(or)
Option 2 : JBCSPOOLERDIR = /usr/jbc/jspooler

Depending on the spool requests, make the jspooler directory T24


environment specific or jBASE release specific or in any desired
directory.

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 JBCBASETMP
 Holds the path of the ‘tmp’ directory of jBASE

 Is hardcoded to point to $JBCRELEASEDIR/tmp/jBASEWork

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 JEDIFILENAME_MD
 Holds the path of the VOC file
 JEDIFILENAME_MD = $HOME/VOC
 ($HOME – Home directory of the T24 user)

 VOC – Vocabulary
 Know as Master Dictionary
 Contains various types of entries

jsh…>LIST VOC
jsh…>LIST VOC WITH TYPE = ‘F’
jsh…>LIST VOC WITH TYPE = ‘PA’

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 PA – Paragraph
 A paragraph is a series of sentences stored together
under 1 name

jsh >JED VOC TR01


PA Paragraph Entry
EX Sentence 1
DATA TRAINEE01 Sentence 2
DATA 123456 Sentence 3

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 F – File Pointers
 Point to a file

JED VOC FBNK.CUSTOMER


F
../mbdemo.data/st/FBNK.CUST000
../mbdemo.dict/F.CUSTOMER]D

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables

 JBCLISTFILE
 Contains the path of the &SAVEDLISTS& directory that is used
to store select lists

 JBCLISTFILE = $HOME/&SAVEDLISTS&

The value of this variable can be changed only in the .profile and not
at the jshell prompt

www.jethroltd.com
www.jethroltd.com
jBASE Administration

jBASE Environmental Variables


There are other environment variables that are used
for specific jBASE functionality

jRFS
Spooler
Large files
Distributed files
Etc

Some of these will be discussed with the appropriate


topic 26
www.jethroltd.com
Smart Solutions™

Workshop…

27
www.jethroltd.com
THANK YOU

28
www.jethroltd.com

You might also like