Precisely Speaking
May 21, 2012, 07:14:55 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: So what's news with you?  Tell us about it in "Getting To Know You"!
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Help - cannot call routine with SB.PROCESS from uniobjects  (Read 640 times)
slestak
Uber-Pro
****
Posts: 69



« on: March 24, 2011, 12:54:27 PM »

I am troubleshooting calling a USER-FORMS PACKSLIP from UniObjects for VB.  Got info from Kevin that PROGS PSI.LOAD.COMMON is the key.

Have not gotten it working yet, but will document the solution.
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #1 on: March 24, 2011, 01:00:44 PM »

The issue is that in an RPC call, you're authenticated into Unidata but not into SB+.  This is what the PSI.LOAD.COMMON is supposed to do; initialize common so that you can call SB.PROCESS(..) for an appropriate SB+ process from within the Unidata BASIC code.

In the BASIC code, you should be able to do this:

EXECUTE 'PSI.LOAD.COMMON -Uuser

...where user is an SB+ user ID.  (Prelude uses "CONT" for the continuous printer, not sure if there's anything special about that name.)  Once this execute returns, SB+ common should be initialized and you should be able to CALL SB.PROCESS('whatever') from your routine.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!