Professional Documents
Culture Documents
T24 Jbase Complete PDF
T24 Jbase Complete PDF
Slide 1
OBJECTIVE
INTRODUCTION TO JBASE
INTRODUCTION TO JBASE
TECHNICAL LAYER
AC
LD
MM
Applications
T24/GLOBUS
jBase / UniVerse
DBMS
Unix / Windows
OS
JBASE TERMINOLOGY
jBase
Microsoft Office
Account
Database
File
Table
Record
Record
Field
Field
Value
Value
Multi Value
no comparison
Sub Value
no comparison
FEATURES OF JBASE
JBASE FEATURES
Unique feature in jBase are
Can store variable length records.
Unlimited number of files.
Most efficient method of data storage, access and retrieval.
JBASE ARCHITECTURE
10
JBASE ARCHITECTURE
11
ARCHITECTURE
12
ARCHITECTURE
13
ARCHITECTURE
14
ARCHITECTURE
15
ARCHITECTURE
16
ARCHITECTURE
17
18
LOGIN TO JBASE
19
JBASE LOGIN
20
JBASE LOGIN
21
JBASE LOGIN
22
23
/jBase
bin
config
jspooler
lib
tmp
dev
24
JBASE DIRECTORIES
bin
config
dev
jbcmessages
include
lib
src
tmp
Executable files
Configuration files
External device information
Error messages
Include files
Library files
Source code files
Temporary files
25
JSHELL
26
JSHELL
Why jShell?
jShell provides a command line environment equivalent to DOS
and UNIX terminal modes.
Features of jShell
Easily customizable command line prompt
Easy command recall.
27
NAVIGATION IN JSHELL
BK
from T24 gets you down to the jsh prompt
jsh > pwd
present working directory
jsh > jdir
list files and directories under current directory
jsh > ls -l (unix installation)
list files and directories and their permissions
jsh >more (unix installation)
used with record name to display contents of the record
jsh > cd
move to directory or file
jsh> exit
exits UNIX
28
jShell COMMANDS
jdir
jrm
jmv
29
JBASE ENVIRONMENTAL
VARIABLES
30
31
jdiag
Shows all environment variables from a jBASE perspective
This has to be executed from the jshell prompt
echo
Shows you the contents of an environment variable
This has to be executed from the jshell prompt
Example : echo $HOME
32
JBCRELEASEDIR
33
JBCGLOBALDIR
34
JBCSPOOLERDIR
35
PATH
36
JBCBASETMP
37
JBCLISTFILE
38
39
FILE TYPES
Hashed Files
Non-Hashed Files
40
NON-HASHED FILES
41
HASHED FILES
42
FILES IN JBASE
Contains records
Dictionary portion
Contains field name and
its properties
Data
: Records in turn has many fields.
Dictionary : Contains field name and its attributes like
eg. Length, Max.range etc.,
43
Modulo
The data and dict portion of hashed files are divided in to groups
called Modulos.
Default size of one Modulo is 1024 bytes for J3 type
Default size of one Modulo is 4096 bytes for J4 type
Separation
The size of the modulo is determined by separation.
Multiplying factor of the Modulo.
44
45
4*1024=
4*1024=
4*1024=
4*1024=
4096 Bytes
4096 Bytes
4096 Bytes
4096 Bytes
Modulo1
Modulo2
Modulo3
Modulo4
4 *1024=
4096bytes
Modulo 5
46
3*4096=
3*4096=
3*4096=
3*4096=
12298 Bytes
12298 Bytes
12298 Bytes
12298 Bytes
Modulo1
Modulo2
Modulo3
Modulo4
47
COPY
SYNTAX:
COPY FROM [SOURCE FILE]TO [TARGET FILE] record
names
Eg: COPY FROM MCB.TRN TO MCB.TRN1 TEST
This command copied the record from MCB.TRN to
MCB.TRN1.
48
49
Slide 50
Slide 51
Slide 52
View it in Oracle
Slide 53
COMMANDS
CLEAR.FILE
To delete all records in dictionary or data file. You cannot
use this statement to delete the file itself.
Syntax : CLEAR.FILE <file name>
DELETE.FILE
Deletes the data file or dictionary file.
Syntax : DELETE.FILE <file name>
54
jQL
55
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
Enter JQL statements in the jBase prompt to see how each one
works.
56
LIST
List
57
LIST
58
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.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.
59
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.
60
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.
61
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.
62
ESEARCH
ESEARCH
This command will search for the string RADAR in Globus.BP.
ESEARCH GLOBUS.BP
STRING:RADAR
STRING:
4 record(s) selected to SELECT list #0.
63
UTILITIES
64
COMO
65
WHERE
will display the details of processes executing jBase programs.
It has to be executed from jShell prompt.
WHO
Utility that displays the port number and the user for the current
process.
66
AUTOLOGOUT
67
CT
68
SHOW-ITEM-LOCKS
69
CLEAR-ITEM-LOCKS
70
TOOLS
71
JSHOW
72
JDIAG
73
JSTAT
74
JRF
JEDITOR
76
jED
77
78
3. The data editing area, which fills the rest of the screen.
79
jED COMMANDS
Ctrl G
Mark Block, 1st Start Blk, 2nd End Blk, 3rd Remove Mark
CBn
CAn
/string or L
MB
MA
BI
BION
! Cmd
Execute Command
!!
HX or HEX
jED COMMANDS
<Ctrl A>
<Ctrl E>
<Esc>
<Ctrl W>
<Ctrl K>
<Ctrl D>
jED COMMANDS
<Ctrl P>
<Ctrl R>
<Ctrl T>
<Ctrl V>
<Ctrl X>
<Enter>
REPLACE
RU/OLD/NEW
83
84
SUMMARY
85
Presented By:
Prakash Parupudi
Slide 86
Slide 86
87
88
89
WORKSHOP
90
NON-HASHED FILE
91
HASHED FILE
: 4
Dict Separation
: 2
: 4
Data Separation
: 3
HASHED FILE
Dict Portion of Hashed file of Type=J4 for Modulo=4 and
Separation=2 and secondary buffer size = 3
2*4096=
8192 Bytes
Modulo1
3*8192
2*4096=
2*4096=
2*4096=
8192 Bytes
8192 Bytes
8192 Bytes
Modulo2
Modulo3
Modulo4
3*8192
3*8192
3*8192
HASHED FILE
Data Portion of Hashed file of Type=J4 for Modulo=4 and
Separation=4 and Default secondary buffer size
4*4096=
16384 Bytes
Modulo1
2*16384
4*4096=
4*4096=
4*4096=
16384 Bytes
16384 Bytes
16384 Bytes
Modulo2
Modulo3
Modulo4
2*16384
2*16384
2*16384
Presented By:
Prakash Parupudi
Slide 95
Slide 95