Compile / execute a subroutine

1,802 views
Skip to first unread message

Allexxei

unread,
Sep 26, 2007, 2:05:30 AM9/26/07
to jBASE
Hi,

I have just hired to a bank where they are using this T24 System on an
UNIX machine ( AIX).

I would like to do some testing on this but I do not have any tutorial
arround here. Could you tell me how to start ?

I connect to AIX with an netterm terminal ( telnet based, I think) and
I have acces to JSH . I want to do small progarms for learning the
statments and the function of the language but I do not know how . I
made this file "test" which contains one line: PRINT "TEST". I tried
to compile it using EB.COMPILE ( they told me this is how I should
compile a routine) but it keep giving me one error about a VOC FILE
that is missing.

Could you give a small example of how to make a script / comile it and
run it ? I do not want to access any database just to print some
things and some basic instructions so I be able to learn this
language.

Thanks a lot !

PQM

unread,
Sep 26, 2007, 7:03:50 AM9/26/07
to jB...@googlegroups.com
To run a program without using the run statement, you need to catalog it. I
will guess that it's EB.CATALOG .
Otherwise, you can execute by typing RUN <filename where program is>
<program name> .
Note that subroutines must cataloged.

Regards,
Peter

ADENIYI KAREEM

unread,
Sep 26, 2007, 7:32:23 AM9/26/07
to jB...@googlegroups.com
 
1. CREATE  a dir where u want ur test programs e.g TEST.BP 
 
at jsh ----> CREATE.FILE TEST.BP TYPE=UD
now, u have a dir called TEST.BP
 
2.  jsh ---> JED TEST.BP Nameofprogramm
PROGRAM Nameofprogramm
 
3. Enter ur program instruction
 
 
4. FI
 
5. EB.COMPILE TEST.BP Nameofprogramm
 
6. Test ur Nameofprogramm
 
7. Nameofprogramm
 
U can check for more details at jbase.com site.
 
 
Regards,
 
'Niyi 

 

Jim Myers

unread,
Sep 26, 2007, 8:07:37 AM9/26/07
to jB...@googlegroups.com
yeah...niyi has it all for you.
just follow the steps.
 
..and hey....if u can give me a screen shot of your error  message, i can help.
 
-Regards.

 
--
Jim Jerry Myers
Global Solutions Limited.
Cantoment
Tel: 0244722960
      0207394212

Allexxei

unread,
Sep 26, 2007, 9:55:02 AM9/26/07
to jBASE
I made exacly this

And when I run EB.COMPILE I get this:

!!! Error message CANNOT OPEN VOC FILE not found !!!

Here is the 2 lines I wrote in the program

0001 PROGRAM Detest
0002 PRINT "MERGE MAH"

On Sep 26, 1:32 pm, "ADENIYI KAREEM" <kareem...@gmail.com> wrote:
> 1. CREATE a dir where u want ur test programs e.g TEST.BP
>
> at jsh ----> CREATE.FILE TEST.BP TYPE=UD
> now, u have a dir called TEST.BP
>
> 2. jsh ---> JED TEST.BP Nameofprogramm
> PROGRAM Nameofprogramm
>
> 3. Enter ur program instruction
>
> 4. FI
>
> 5. EB.COMPILE TEST.BP Nameofprogramm
>
> 6. Test ur Nameofprogramm
>
> 7. Nameofprogramm
>
> U can check for more details at jbase.com site.
>
> Regards,
>
> 'Niyi
>

> > > Thanks a lot !- Hide quoted text -
>
> - Show quoted text -

Allexxei

unread,
Sep 26, 2007, 9:56:46 AM9/26/07
to jBASE
I also tried this:

jsh testb ~/MYFLD.BP -->RUN Detest
** Error [ 201 ] **
Unable to open file Detest
jsh testb ~/MYFLD.BP -->RUN TEST.BP
** Error [ 203 ] **
What is the record name ??
jsh testb ~/MYFLD.BP -->


On Sep 26, 1:32 pm, "ADENIYI KAREEM" <kareem...@gmail.com> wrote:

> 1. CREATE a dir where u want ur test programs e.g TEST.BP
>
> at jsh ----> CREATE.FILE TEST.BP TYPE=UD
> now, u have a dir called TEST.BP
>
> 2. jsh ---> JED TEST.BP Nameofprogramm
> PROGRAM Nameofprogramm
>
> 3. Enter ur program instruction
>
> 4. FI
>
> 5. EB.COMPILE TEST.BP Nameofprogramm
>
> 6. Test ur Nameofprogramm
>
> 7. Nameofprogramm
>
> U can check for more details at jbase.com site.
>
> Regards,
>
> 'Niyi
>

Emery A Grantier

unread,
Sep 26, 2007, 11:28:14 AM9/26/07
to jB...@googlegroups.com
A common theme that runs through a lot of "Pick" commands is the form
"verb file item".

In your case the action word (verb/command) is "RUN", the file is
"TEST.BP", and the item is "Detest". The full command is thus:

RUN TEST.BP Detest

This matches the JED format, and a lot of other commands. "JED" is the
verb, "TEST.BP" is the file, and "Detest" is the item.

JED TEST.BP Detest

There are a lot more examples. Check the commands/verbs in the jBASE
Knowledgebase...


Deschutes County Information Technology
Emery Grantier, Senior Programmer Analyst
14 NW Kearney
Bend OR 97701

Help Desk (541) 617-4759
Voice & voice mail (541) 388-6543
Fax, with cover sheet! (541) 317-3180

emery_g...@co.deschutes.or.us

"Everything should be made as simple as possible, but no simpler."

Peter Mowatt

unread,
Sep 26, 2007, 9:18:36 PM9/26/07
to jB...@googlegroups.com
As I stated earlier, the syntax for the RUN is RUN <filename> <program
name>
i.e. RUN TEST.BP Detest

-----Original Message-----
From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf
Of Allexxei
Sent: Wednesday, September 26, 2007 9:57 AM
To: jBASE

Peter Mowatt

unread,
Sep 26, 2007, 9:20:11 PM9/26/07
to jB...@googlegroups.com
To compile the program, try BASIC TEST.BP Detest

-----Original Message-----
From: jB...@googlegroups.com [mailto:jB...@googlegroups.com] On Behalf
Of Allexxei
Sent: Wednesday, September 26, 2007 9:57 AM
To: jBASE

Allexxei

unread,
Sep 27, 2007, 2:45:52 AM9/27/07
to jBASE
Hi,

10x guys . Finaly, using BASIC ... and RUN ... like in the last 2
messages it worked.

In fact, there was, also, something else involved :) Before I start
edit the programs they told me to run a command ETS . This time I
tried without this.

I looked into documentation on jbase but there is no tutorial. Is true
that there is program reference, but is not enough.

> > - Show quoted text -- Hide quoted text -

Simon Verona

unread,
Sep 27, 2007, 3:48:57 AM9/27/07
to jB...@googlegroups.com

I think you may be getting confused between "jBASE" and "T24".  BASIC,CATALOG and RUN are all jBASE commands and are reasonably well documented in the jBASE guides (though I couldn't find a single document that seemed to describe the ED, BASIC, CATALOG process).

 

The other commands you have referenced are all T24 commands.  I guess that they are some sort of wrapper around the jBASE commands, but I have no knowledge of these.  You should refer to the T24 documentation or to Temenos for information on these - I'm presuming that you need these to be able to interface with the T24 application.

 

So to summarise, to edit, compile and catalog a program you need to follow this process.

 

> ED BP MYPROG

New Record

TEST

Top

.

I

001+PRINT “HELLO WORLD”

002+

BOTTOM

.FI

 

> BASIC BP MYPROG

MYPROG

Source file MYPROG compiled successfully

 

> CATALOG BP MYPROG

MYPROG

Object MYPROG cataloged successfully

 

> MYPROG

HELLO WORLD

 

 

The catalog command takes your compiled program (compiled by BASIC command) and converts it to a binary file that can be run by simply typing in it’s name at the command line.  As far as I can tell, you need to catalog the program even if you want to just “RUN” it (using the command RUN BP MYPROG).

 

I’m making a basic assumption that your system is set up correctly (in terms of environment variables etc. to do all the above).

 

Hope this helps you a little more.

 

Regards

Simon

 

 

 

=======================================

Simon Verona

Director

 

Dealer Management Services Ltd

si...@dmservices.co.uk

=======================================



This message has been scanned for viruses by BlackSpider MailControl

Allexxei

unread,
Sep 27, 2007, 5:54:18 AM9/27/07
to jBASE
Yes, it's true. There some commands form T24, but now I know
everything I need to start. In fact, I just did :)

I noticed that routins for T24 are written in pure jBase so the
reference from jbase will help me.

Thanks .

> This message has been scanned for viruses by BlackSpider MailControl -www.blackspider.com- Hide quoted text -

boj

unread,
Oct 8, 2007, 9:10:09 AM10/8/07
to jBASE
>From your post I can guess that you didn't see temenos' .pdf manuals.
Before you are going to start writing the code I strongly suggest to
browse them:
Application Program Interfaces.pdf
Subroutine Guide.pdf
T24 Programming Standards.pdf
Template Programming.pdf
You may find them in Apache Tomcat's directory on the server...

Good luck, (in case you are working for the bank I know :)


On Sep 27, 11:54 am, Allexxei <alexandrua...@gmail.com> wrote:
> Yes, it's true. There some commands form T24, but now I know
> everything I need to start. In fact, I just did :)
>
> I noticed that routins for T24 are written in purejBaseso the

> reference fromjbasewill help me.


>
> Thanks .
>
> On Sep 27, 9:48 am, "Simon Verona" <si...@dmservices.co.uk> wrote:
>
>
>
> > I think you may be getting confused between "jBASE" and "T24".

> > BASIC,CATALOG and RUN are alljBASEcommands and are reasonably well
> > documented in thejBASEguides (though I couldn't find a single document


> > that seemed to describe the ED, BASIC, CATALOG process).
>
> > The other commands you have referenced are all T24 commands. I guess that

> > they are some sort of wrapper around thejBASEcommands, but I have no

> > I looked into documentation onjbasebut there is no tutorial. Is true

> > > > U can check for more details atjbase.com site.

> > This message has been scanned for viruses by BlackSpider MailControl -www.blackspider.com-Hide quoted text -

Reply all
Reply to author
Forward
0 new messages