Vous êtes sur la page 1sur 38

TEMENOS

jBase
Foundation
JBASE FOUNDATION

TEMENOS EDUCATION CENTRE

User Introduction – UTILITIES G12


Slide No. 1
OBJECTIVE

Objectives of the course are to


• introduce jBase with features and architecture
• login jBase
• understand jBase Query Language
• jShell tools
• understand jBase editor
INTRODUCTION TO JBASE
INTRODUCTION TO JBASE

• jBase is a database management environment that runs on UNIX,


Linux or Windows NT Operating system etc...
• Temenos T24 Applications are developed in jBase Environment
Using Info Basic and runs in jBase.
• Portable across hardware platforms
(HP-Unix or Linux, Aix, SCO Unix, Windows etc)
• jBase provides a complete Development and Runtime environment.
TECHNICAL LAYER

AC LD MM … … … Applications
T24
jBase /Oracle/DB2 DBMS

Unix / Linux/ Windows OS

• Temenos T24 works on Unix/Linux/ Windows platform and uses jBase as its runtime
environment.
• It can also use jBase as its database.
JBASE TERMINOLOGY

jBase Microsoft Office

Account Database

File Table

Record Record
Field Field
Value Value
Multi Value no comparison
Sub Value no comparison
JBC

jBase Basic language compiler ( jBC )


• It is traditional language for developing applications in jBase.
• It deals efficiently with multi-dimensional database architecture.
• jBC converts the BASIC code into "C" and invokes the native "C"
compiler to convert the "C" source code into a machine native
object file.
LOGIN TO JBASE
JBASE LOGIN

STEPS TO LOG ON TO T24 RUNNING ON jBase


• Log on to Unix / Linux by specifying user name and password
• user name and password are verified
• Remote.cmd or .profile file is executed
• Remote.cmd or .profile has the jBase environment set
JBASE LOGIN

Using REFLECTION software

• Invoke Reflection to login to the server running jBase


JBASE LOGIN

• It will automatically start prompting the user to enter user-name


and password.
JBASE LOGIN
JBASE LOGIN

• jBase shell can be recognized by the appearance of the following


prompt :
jsh <user-name> <current-working-directory> -->
jQL
JQL

The jBase Query Language (jQL) provides the facility, which allows
to retrieve data from the database in a structured order and to
present the data in a flexible and easily understood format.
It is used to process data in the database and to generate reports.
They are
• Record selection for processing
• Report formatting
• Sorting
• Data field manipulation capabilities
Enter JQL statements in the jBase prompt to see how each one
works.
LIST

• List
– To list all the records in a file for the given fields.
– Eg. LIST FBNK.CUSTOMER
• List File Fields
– Eg. LIST FBNK.CUSTOMER MNEMONIC SHORT.NAME NAME.1
• Explicit List
– This list will select only those records which are given explicitly.
– Eg. LIST FBNK.CUSTOMER "100161" "100068"
LIST

Listing of Specific records


• LIST FBNK.CUSTOMER WITH NAME.1 = “SUNN" “SAI" “BABU“
– This will list those records whose Name.1 matches the above mentioned
value.
• LIST FBNK.CUSTOMER WITH NAME.1 = “SAI" AND WITH
SHORT.NAME= “SAIRAM“
– If both Name.1 and Name.2 matches then only the record will be
retrieved.
Soundex Selection
• LIST FBNK.CUSTOMER NAME.1 WITH NAME.1 SAID "SUNN“
– Will list only those records which sounds like “SUNN” and the retrieved
value will have ‘S’ as the starting letter.
SORT

• Sort
– Sort will sort the record in ascending order. If you want to sort the
records in descending order we have to explicitly mention in the sort
statement. By default it will sort in ascending order.
• Sort File By Field Fields
– SORT FBNK.CUSTOMER BY NAME.1 NAME.1 NAME.2
• This command will sort the record by Name.1 in ascending order. Though
it is not specified in the sort command by default it will take ascending
order.
– SORT FBNK.CUSTOMER BY-DSND NAME.1
• This command will sort the record by Name.1 in descending order.
– SORT FBNK.CUSTOMER BY @ID BY NAME.1
• This command will sort the record by id and name in ascending order.
SORT

BREAK-ON
• SORT FBNK.CUSTOMER BY NAME.1 BREAK-ON NAME.1
– This command will insert a break each time the value in the Break-On
field changes.
– (I.e) when the Name.1 changes there will be some spaces between
records.
COUNT

• COUNT
– COUNT FBNK.ACCOUNT
– Count is used to count the total number of records in a file.
• SUPPRESS : DET-SUPP Details suppress
– SORT FBNK.ACCOUNT BY CUSTOMER BREAK-ON "'P'" CUSTOMER
TOTAL WORKING.BALANCE DET-SUPP
– The command will list the total working balance for each customer
without the account detail. Only the grand total of each customer will
be listed. If DET-SUPP is not given then the command will list all the
account and working balance for each customer along with the grand
total of each Customer.
COUNT

• SUPPRESS : ID-SUPP
– Suppress the record ID from being displayed as the first field in any
report.
– SORT FBNK.ACCOUNT BY CUSTOMER BREAK-ON "'P'" CUSTOMER @ID
WORKING.BALANCE ID-SUPP
– By default the id of each record will be displayed even if the id column
is not given. To suppress that id column we have to give Id-Supp.
ESEARCH

ESEARCH
This command will search for the string OFS in Temenos T24 (.BP).
ESEARCH Temenos T24 (.BP)
STRING:RADAR
STRING:
4 record(s) selected to SELECT list #0.
CT

• CT command used to display a record from a file to the terminal.


• Syntax : CT <filename> <record>
• Example : CT VOC FBNK.CUSTOMER
• Output :
001 F
002 ../mbdemo.data/st/FBNK.CUST000
003 ../mbdemo.dict/F.CUSTOMER]D
LISTF & LISTU

• LISTF
– LISTF command displays all list of all files
• LISTU
– The LISTU utility can be used to display information on processes
executing jBase programs.
OFF

• The OFF command will close down all current jBase programs.
TOOLS
JSHOW

• Used to find data files, programs and subroutines


• It has to be executed from jshell prompt.
• Syntax : jshow -options name
– a display subroutine names in a shared object
– c display compile time and source file
– f filename search only
– h display help for jshow
– p program name only search
– s subroutine name only search
JDIAG

• Shows all environment variables and the assigned path from a


jBASE perspective
• This has to be executed from the jshell prompt
JEDITOR
jED

• It is the preferred editing tool for the jBase – operating


environment and suited to the editing of jBASIC programs.

• jED editor is a full screen, context sensitive, screen editor


designed specifically for ease of use and learning

• It incorporates many powerful facilities for manipulating text and


data, and contains all the features that programmers expect.

• Configurable and customizable command keystrokes.


JED COMMAND SYNTAX

Syntax:
• jed pathname {pathname..}
• jed {DICT} filename{,filesection} {record-list} {(options)}
– DICT - This modifier is only required if you wish to edit records in the
DICTionary of a j-file.
– filename - This is the name of the "file" containing the records.
– filesection - This is the file section name, as used in a j-file.
– record-list - It is possible to furnish a list of records to be successively
edited. This can be a list of records separated by a space, or "\*" to
indicate all records in the file.
jED Editor screen

Editor screen is divided into three sections


1. The editor status line at the top
Eg. File PROGS, Record cust_rep.b Insert 10:45:17

2. The Command line


Eg. Command

3. The data editing area, which fills the rest of the screen.
jED COMMANDS

Ctrl G Mark Block, 1st Start Blk, 2nd End Blk, 3rd Remove Mark
CBn Copy Marked block before current line, n times
CAn Copy Marked block after current line. n times
/string or L Locate the next occurrence of "string"
MB Move Marked block before current line
MA Move Marked block after current line
BI Format BASIC code
BION Turn on Format indentation
! Cmd Execute Command
!! Re-execute last ! Cmd
HX or HEX Toggle the display of the record in Hexadecimal
jED COMMANDS

<Ctrl A> Moves cursor to start of the current line.


<Ctrl E> Moves the cursor to the end of the current line.
<Esc> Moves the cursor to the Command LINE
<Ctrl W> Deletes from the cursor to the end of the word,
including the following white space characters
<Ctrl K> Clears text to the end of the line. If the cursor is
situated at the end of the text line, then this
Command will join the following line with the
current line
<Ctrl D> Deletes the current line. By default, this key
must be pressed twice to delete the line. This is
to avoid accidental deletion by users familiar
with vi.
jED COMMANDS

<Ctrl P> Locates the previous occurrence of a earlier located


string.
<Ctrl R> Redisplays the screen and discards the most recent
updates (since the last carriage return).
<Ctrl T> Copies the character at the corresponding cursor
position on the line above the current line.
<Ctrl V> Performs jBC program indentations on the current
screen window.
<Ctrl X> Exits the current record without writing away any
updates. If the record has been changed within the
current editing session then the editor will ask for
confirmation to exit the modified record.
<Enter> Opens a new line. Any characters on the current line
after the current cursor position are moved to the start
of the new line.
REPLACE

Position the cursor on appropriate line and move to the


Command-> Prompt
R/OLD/NEW : Changes first OLD to NEW on current line.
R/OLD/NEW/3 : Changes first 3 OLD to NEW on current line.
R3/OLD/NEW : Changes first OLD to NEW over 3 lines.
RU/OLD/NEW : Changes all OLD to NEW on current line.
RU3/OLD/NEW : Changes all OLD to NEW over 3 lines.
COPY AND MOVE - BLOCKS

• Select the Block using Ctrl G and move to the Command->


Prompt
– CA : Copies block after line you are on.
– CA4 : Copies block 4 times after line you are on.
– CB : Copies block before line you are on.
– CB4 : Copies block 4 times before line you are on.
– MA : Moves block after line you are on.
– MB : Moves block before line you are on.
– DB : Deletes Block.
SUMMARY

• We have learnt Jbase architecture and access to jbase


• We discussed about Jbase environmental variables and tools
• We understood the use of JED editor and JQL

Vous aimerez peut-être aussi