UBE won't run from Interconnectivity on AS/400

WhippingBoy

WhippingBoy

VIP Member
UBE won\'t run from Interconnectivity on AS/400

OK, this is driving me nuts. I have a windows program that submits UBE's to the server at intervals. Well, that's what it's SUPPOSED to do. Instead, all the jobs end in error with this log. . .

**************************************************************
1415 Wed Apr 3 15:28:25 2002 runbatch.c378
INITIALIZING RUNBATCH job: 411098

1415 Wed Apr 3 15:28:25 2002 ipcpub.c2903
process 1415 <B7333SYS/PRINTUBE> registered in entry 63

1415 Wed Apr 3 15:28:25 2002 runbatch.c618
Startup for User=ALC5, Env=DV7333, Job#=411098

1415 Wed Apr 3 15:28:35 2002 jdbnsnrc.c128
BNT0000126 - Unable to receive message - eConnectionFailed

1415 Wed Apr 3 15:28:35 2002 jdbnincn.c148
BNT0000026 - Unable to find remote environment or user for new environment

1415 Wed Apr 3 15:28:35 2002 jdb_drvm.c647
JDB9900164 - Failed to connect to Central Objects - DV7333

1415 Wed Apr 3 15:28:35 2002 jtp_cm.c283
JDB9909003 - Could not init connect.

1415 Wed Apr 3 15:28:35 2002 jtp_tm.c962
JDB9909100 - Get connect info failed: Transaction ID =

1415 Wed Apr 3 15:28:35 2002 jdb_rq1.c1809
JDB3100013 - Failed to get connectinfo

1415 Wed Apr 3 15:28:37 2002 runbatch.c1066
RUNBATCH: Remote CP=1252, Remote OS=5, Local CP=37, ConvertToASCII=0

1415 Wed Apr 3 15:28:39 2002 ipcpub.c3215
API ipcSawUnregisterProcV1 : process 1415 unregistered in entry 63

1415 Wed Apr 3 15:28:39 2002 runbatch.c1327
Processing PrintUBE request failed - see previous messages

1415 Wed Apr 3 15:28:39 2002 runbatch.c1337
Job of type UBE failed with rcode = 0

1415 Wed Apr 3 15:28:39 2002 jdbnsnrc.c252
BNT0000079 - Unable to create associated message handle - 2

1415 Wed Apr 3 15:28:39 2002 jdbnfrdr.c108
BNT0000014 - Unable to send: free driver

1415 Wed Apr 3 15:28:39 2002 jdbnfrdr.c144
BNT0000015 - Unable to free driver - 0

1415 Wed Apr 3 15:28:39 2002 jdb_drvm.c522
JDB9900163 - Failed to free db driver library - JDBNET
**************************************************************

Here's the heart of the code. . well, the important stuff. .:

//log onto OW. . .
rcode=JDB_InitEnvOvr(&hEnv,szEnv,szUser,szPwd)
rcode=JDB_InitUser(hEnv,&hUser,NULL,JDEDB_COMMIT_AUTO)
jdeCreateBusinessFunctionParms(hUser,&lpBhvrCom,(LPVOID*)&lpVoid);

JDB_InitBhvr ((void *)lpBhvrCom,&hUser,(char *)NULL,JDEDB_COMMIT_AUTO);

// now the report stuff. . .
memset(szBlobBuffer,'\0',sizeof(szBlobBuffer));
ConvertBlob((char*)dsF986113.sssrvbloba.lpValue,(int)dsF986113.sssrvbloba.lSize,szBlobBuffer);

if (szBlobBuffer!=NULL)
lpReportDS = AllocBuildStructFromStr(lpDsTmpl, dsF986113.sspid, szBlobBuffer);
//
// Launch the UBE indicated in the file
//

memset((void *)&dsUbeStructure, (int)'\0', sizeof(dsUbeStructure));

jdeNIDcpy(dsUbeStructure.szReport,(const char*)&dsF986113.sspid);
jdeNIDcpy(dsUbeStructure.szVersion,(const char*)&dsF986113.ssvers);

jdeGetHostName(dsUbeStructure.szMachineKey,16,1);
GetLocalEnvironmentName(dsUbeStructure.szEnhv, 11);
dsUbeStructure.idRunTime = (GLRTID)lpBhvrCom->hDlg << 16;

dsUbeStructure.bPreview = FALSE;
dsUbeStructure.bJDELog=FALSE;
dsUbeStructure.bJDEDebugLog=FALSE;
dsUbeStructure.bSynchFlag = FALSE;
dsUbeStructure.bBatchFlag = TRUE;
// Launch the Ube
idJDBReturn=jdeLaunchUBEEx((HUSER)hUser,(PUBEVAR)&dsUbeStructure,(LPVOID)lpReportDS,lpBhvrCom);


Can anyone see why it doesn't connect on the server???

AS/400, btw
XE version 1




Darren Ricciardi - OneWorld Whipping Boy

Looking for work WEST of DENVER

Home of OWTEK: http://www.cris.com/~grzero
 
Re: UBE won\'t run from Interconnectivity on AS/400

Before running the UBE from another pgm, you must submit the version specs to
the server. Have you done this. If not go to Batch Versions, select the
version, select advanced, select submit version specs, submit.

This ususlly fixes it when I have a similar problem.

Good Luck
Bill Schmatz



Bill Schmatz
Business Systems Solutions, Inc

B7332, AS400
 
Re: UBE won\'t run from Interconnectivity on AS/400

Did u able to solve your problem ?? Can you please attach your code. The exampole looks very interesting

Thank You
OW Hell
 
Back
Top