× Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...

about basic program tsa.service

  • tester111
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #20824 by tester111
about basic program tsa.service was created by tester111
I just run the service by trun tsa, but I don't know how to call the service by basic program? Anyone knows.

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • TAFj-R20 - 'unix'
More
7 years 3 months ago #20825 by jpb
Replied by jpb on topic about basic program tsa.service
I think this is not a question of TAFJ or basic programming but of understanding the TSM / tSA concept.

There is no need to start tSM individually (neither by trun nor via a routine) when TSM is running in normal mode, only in DEBUG mode this is required.
So why write a routine "to call the tsa.service job" ?
When you are debugging "trun tSA n" will do the job and you have full control.
Else let TSM do what it is designed for: starting and stopping tSM threads.

Please Log in or Create an account to join the conversation.

  • tester111
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago - 7 years 3 months ago #20833 by tester111
Replied by tester111 on topic about basic program tsa.service

I think this is not a question of TAFJ or basic programming but of understanding the TSM / tSA concept.

There is no need to start tSM individually (neither by trun nor via a routine) when TSM is running in normal mode, only in DEBUG mode this is required.
So why write a routine "to call the tsa.service job" ?
When you are debugging "trun tSA n" will do the job and you have full control.
Else let TSM do what it is designed for: starting and stopping tSM threads.


how can i write a program to loop the text file data and then insert to database? any reference
Last edit: 7 years 3 months ago by tester111.

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • TAFj-R20 - 'unix'
More
7 years 3 months ago #20837 by jpb

Please Log in or Create an account to join the conversation.

  • tester111
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #20845 by tester111
Replied by tester111 on topic about basic program tsa.service

OK, maybe this helps :
www.t24all.com/index.php/forum/t24-devel...e-for-cob.html#15597


thanks for your information. but i still don't understand the program. if i have a file in the server folder, how can i write a program to read file line one by one and then insert into table in database? any reference?

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Away
  • Platinum Member
  • Platinum Member
  • Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
More
7 years 2 months ago #20849 by VK
Replied by VK on topic about basic program tsa.service
Hi

> to read file line one by one

OPENSEQ... READSEQ

> insert into table in database

WRITE (F.WRITE if you write into T24 local application data file; OFS if that's core T24 application).

Cheers
VK

Please Log in or Create an account to join the conversation.

  • armin
  • armin's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • “So long - and thanks for all the fish!”
More
7 years 2 months ago #20850 by armin
Replied by armin on topic about basic program tsa.service
Have you ever had a look into jBase handbook / online help?
e.g. www.jbase.com/r5/knowledgebase/manuals/3...man/jbc2_READSEQ.htm
or jbc.temenos.com/pages/readseq.html

using R11 on Unix

Please Log in or Create an account to join the conversation.

  • tester111
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 2 months ago #20855 by tester111
Replied by tester111 on topic about basic program tsa.service

Hi

> to read file line one by one

OPENSEQ... READSEQ

> insert into table in database

WRITE (F.WRITE if you write into T24 local application data file; OFS if that's core T24 application).


Do you have example how to use openseq to read and write to table. I am new to use t24. Thanks in advance.

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • TAFj-R20 - 'unix'
More
7 years 2 months ago #20856 by jpb
Replied by jpb on topic about basic program tsa.service
Even when you are "new to use t24" it can be expected that you consult the available documents before asking questions.
Please see Armin's links, there are sufficient examples provided.
The following user(s) said Thank You: armin

Please Log in or Create an account to join the conversation.

  • tester111
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 2 months ago #20860 by tester111
Replied by tester111 on topic about basic program tsa.service

Have you ever had a look into jBase handbook / online help?
e.g. www.jbase.com/r5/knowledgebase/manuals/3...man/jbc2_READSEQ.htm
or jbc.temenos.com/pages/readseq.html


thanks for your information.
i read the sample program and i can't understand what is F.XXX and R.XXX where can i get the program what is different between F.XXX and R.XXX. and the variable i can't see anywhere it is declared in program, is it also in the include i_common file ?

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Away
  • Platinum Member
  • Platinum Member
  • Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
More
7 years 2 months ago #20861 by VK
Replied by VK on topic about basic program tsa.service
Where exactly did you see that?

Cheers
VK

Please Log in or Create an account to join the conversation.

Time to create page: 0.144 seconds