Focal Point
proper syntax for executing a MSS stored procedure

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2121080902

January 23, 2007, 03:52 PM
JENGRT9
proper syntax for executing a MSS stored procedure
lOOKING FOR PROPER SYNTAX FOR EXECUTING A MSS STORED PROCEDURE
Using Webfocus 5.3.2, here is my syntax. Unfortunately all I get is a " (FOC1400) SQLCODE IS -1 (HEX: FFFFFFFF)
: ERROR: ncjInit failed
L (FOC1405) SQL PREPARE ERROR"

ANY HELP OR SUGGESTIONS WOULD BE APPRECIATED

-MRNOEDIT BEGIN
SET SQLENGINE = SQLMSS
SQL SQLMSS SET USER TMPSQL01/USER_ID,PASSWORD
SQL SQLMSS

SQL
EX trac_WO.dbo.lblsp_get_partno_by_workorder;
END
January 24, 2007, 10:33 PM
Piipster
Try:

SQL SQLMSS SET USER TMPSQL01/USER_ID,PASSWORD
SQL SQLMSS EX trac_WO.dbo.lblsp_get_partno_by_workorder
END

You may also want to look at:
iWay Adapter Administration for UNIX, Windows,
OpenVMS, OS/400, OS/390, and z/OS
Version 7 Release 1.3
DN9400230.0206


ttfn, kp


Access to most releases from R52x, on multiple platforms.
January 25, 2007, 02:43 PM
Robert B Clark
You first have to make sure you queue up the remote connection to the SQL server properly, i.e. a hub-sub configuration. Try this example:
-MRNOEDIT BEGIN
REMOTE DEST = WFSA2003
-REMOTE BEGIN
SQL SQLMSS SET SERVER TMPSQL01
SQL SQLMSS
EX Trac_WO.dbo.lblsp_get_partno_by_workorder 'W36389';
TABLE FILE SQLOUT
PRINT *
ON TABLE PCHOLD AS LISTOFWO
END
-REMOTE END
-MRNOEDIT END
TABLE FILE LISTOFWO
PRINT *
END


Robert B. Clark -- Business Systems Analyst
Daimler Trucks North America
Phone: 503.745.7057
"There's always a better way."
IBM Mainframe zOS 8.1.05, DB2 adapter
WF 8.1.05 Hub to Sub, Self-Service, SQL Server adapter