Precisely Speaking
May 21, 2012, 06:54:22 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: SB+ and Redback Phantoms  (Read 2240 times)
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« on: June 21, 2007, 07:50:57 AM »

In a recent Schedule Definition installation, we ran into all sorts of confusion regarding having a single account that can run both SB+ and Redback phantoms.  First, some background:

SB+ Job Schedule phantoms need SB.LOGIN to be started in the LOGIN proc/paragraph.  Redback phantoms need WW.SB.RB to be started in the LOGIN proc/paragraph.  Obviously, both cannot be started in the same LOGIN.  We first tested @USER.TYPE under the assumption that SB+ phantoms set @USER.TYPE = 1 and RB phantoms set @USER.TYPE to 0, using this paragraph:

PA
IF @USER.TYPE = 1 THEN SB.LOGIN
WW.SB.RB

However, for some reason this caused SB.LOGIN to be invoked for both SB+ and RB tasks.  Yes, WW.SB.RB invokes SB.LOGIN, but it's supposed to sense when it's a RB job and just drop to TCL.  This made us believe that @USER.TYPE was 1 for RB jobs (which we have since learned it is 0.)  In this configuration however, rather than dropping to TCL, WW.SB.RB was running SB.LOGIN for some unexplained reason.  In the end then, we found this to be the golden ticket:

PA
IF @USER.TYPE = 1 THEN GO PHAN
WW.SB.RB
GO EXIT
PHAN:
SB.LOGIN
EXIT:

This is basically the same as before but with a lot more lines and this one works.  SB.LOGIN logs the port off when its done so there really isn't much difference between the two variations, except for one works and the other doesn't.

FYI
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!