Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
17%
200 - 500 GB
17%
500 - 800 GB
6%
800 - 1200 GB
6%
1200 - 1500 GB
17%
1500 - 2000 GB
17%
> 2000 GB
22%
Total votes: 18

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 15th January 2004, 17:45
jholdrid jholdrid is offline
Member
 
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.handle.subproc(“tfacp1110s000”,“tfacp1130s000”,add)
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)
Stpapi.continue.process(tfacp1131s000”,error.msg)

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.

Thanks



Reply With Quote
Sponsored Links
  #2  
Old 15th January 2004, 22:03
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,122
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.

Mark


Anyway here is the subroutine:

Code:
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
			kill(hold.pno)
			sess.found = true
		endif
	endwhile
}

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

Code:
| Update reason code for change.
	put_reason_code()
|************ This is where it hoses..................................
	ppid = pid
	baan.sess = "tdpur9151s00b"
	export("ppid",ppid)
	export("baan.sess",baan.sess)
	activate("tuddc9120m000")
	stpapi.zoom.option("tdpur4107s000",1,"tdpur9151s00b",fserr)
Reply With Quote
Reply


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 11:51.


©2001-2018 - Baanboard.com - Baanforums.com