Go Back > Forum > Baan SIGs > AFS/DDC/OLE: Function servers

User login

Frontpage Sponsor


How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
200 - 500 GB
500 - 800 GB
800 - 1200 GB
1200 - 1500 GB
1500 - 2000 GB
> 2000 GB
Total votes: 65

Baanboard at LinkedIn

Reference Content

Thread Tools Display Modes
Old 15th January 2004, 17:45
jholdrid jholdrid is offline
Join Date: Mar 2002
Location: Wausau WI
Posts: 38
jholdrid is on a distinguished road
Baan: Baan IVc4 - DB: Oracle 8.1.7 - OS: Solaris 5.8
Unhappy Problem with tfacp1130s000

We recently installed the latest Baan IVc4 tools set and I am having problems calling tfacp1130s000.

My script is as follows:

Stpapi.continue.process(“tfacp1110s000”, error.msg )

tfacp1131s000 opens and the session hangs. I have not been able to find any way to control tfacp1131s000. I do add it in my script next.

Stpapi.handle.subproc(“tfacp1130s000”,”tfacp1131s000”, add)

If I start the shell and kill the process tfacp1131s000, the session continues. But I have not been able to kill it within script API calls.

This code was working in the old tools set.
Please - Can Any one suggest a solution.


Reply With Quote
Old 15th January 2004, 22:03
mark_h's Avatar
mark_h mark_h is offline
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,249
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Killing the sessions

Does the session work okay after you kill it manually? If so then you might be able to use a subroutine that I developed to kill un-ruly sessions. I had to use this in my Create purchase order session. Originally I was going to make it a normal session, but then never had time to finish it. It has been a while since I looked at the code - I still have some doubts about it and know there are potential problems. Hope it helps - and improvements are welcome. By the way part of the code was posted by NPR along time ago.


Anyway here is the subroutine:

function find.a.process()
	long    hold.pno
	long    pno
	long    info(256)
	string  pname(15)
	sess.found = false
	pno = 0
	hold.pno = pno
	pno = pstat (pno, pname, info)
	while pno > 0 and not sess.found
		hold.pno = pno
		pno = pstat (pno, pname, info)
		if strip$(pname)=strip$(baan.sess) then
			sess.found = true

Here is a sample of calling it - the reason code was session tcmcs9551s00b and it was automatically starting tdpur9151s00b. I never could control it, but if I killed it I could then launch the session normally. Do not use pid so I do not know why it is included - hmmm. Just a cut and paste of the code

| Update reason code for change.
|************ This is where it hoses..................................
	ppid = pid
	baan.sess = "tdpur9151s00b"
Reply With Quote
Sponsored Links

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TSS problem on NT/Informix Mads Lund Tools Administration & Installation 0 24th March 2004 11:45
process problem rohan_rege AFS/DDC/OLE: Function servers 4 21st October 2002 20:35
problem with stpapi.handle.subproc rohan_rege AFS/DDC/OLE: Function servers 2 18th September 2002 17:50

All times are GMT +2. The time now is 23:08.

©2001-2018 - -