IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sqlcode -927 in calling a sql stored procedure inside cobol


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
namitjai

New User


Joined: 12 Feb 2008
Posts: 41
Location: Bangalore

PostPosted: Sat Dec 13, 2008 6:49 pm
Reply with quote

Hi ,
I am calling a sql stored procedure inside my cobol function,but I am getting an error code of -927 at the place where I am calling my Stored Procedure. Please help me out as to how to solve this issue. Giveb below are the Link edit step of the jcl used to compile Stored procedure as well as Cobol functions:

Stored procedure:
//PROCESS EXEC DSNHSQL,MEM=TESTSP,
//* COND=(4,LT),
// PARM.PC='HOST(SQL),SOURCE,XREF,MAR(1,80),STDSQL(NO)',
// PARM.PCC='HOST(C),SOURCE,XREF,MAR(1,80),STDSQL(NO)',
// PARM.C='SOURCE LIST MAR(1,80) NOSEQ LO RENT',
// PARM.LKED='AMODE=31,RMODE=ANY,MAP,RENT'
//PC.SYSUT1 DD DSN=&&SPDML,DISP=(,PASS),
// UNIT=SYSDA,SPACE=(TRK,1),
// DCB=(RECFM=FB,LRECL=80)
//PC.SYSIN DD DISP=SHR,DSN=SECURENT.SP.SRCELIB(&MEM.)
//PC.SYSLIB DD DUMMY
//PCC.DBRMLIB DD DISP=SHR,DSN=SECURENT.DBRMLIB(&MEM.)
//PCC.SYSLIB DD DUMMY
//LKED.SYSLMOD DD DSN=SECURENT.SP.LOADLIB.FINAL(&MEM.),
//LKED.SYSIN DD *
INCLUDE SYSLIB(DSNRLI)
NAME TESTSP(R)
/*
//*
//*


Function:
//LKED EXEC PGM=IEWL,
// COND=((8,LE,COB),(8,LE,PC)),
// PARM='XREF'
//SYSLIB DD DSN=CEE.SCEELKED,DISP=SHR
// DD DSN=CEE.SCEERUN,DISP=SHR
// DD DSN=DSN810.SDSNLOAD,DISP=SHR
//SYSLIN DD DISP=(OLD,DELETE),
// DSN=&&LOADTMP
//SYSLMOD DD DISP=SHR,
// DSN=SECURENT.SP.LOADLIB.FINAL(TESTPROC)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT1 DD SPACE=(1024,(50,50)),
// UNIT=SYSDA
//*

pLEASE LET ME KNOW WHAT CHANGES ARE REQUIRED.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Dec 13, 2008 7:49 pm
Reply with quote

Have you read the manuals to find out what -927 means ?

If not, that is the very first place to go.

Also, post the error messages and codes issued by the job.
Back to top
View user's profile Send private message
namitjai

New User


Joined: 12 Feb 2008
Posts: 41
Location: Bangalore

PostPosted: Sun Dec 14, 2008 7:03 pm
Reply with quote

Function I am getting that error message runs in WLM address space so there is no system error messages. I am able to trace the error code by putting displays into my Cobol function. Also I gone through the documents for sqlcode -927 but couldn't find out what exactly is required to be done. If you have any cluse about it then please do let me know..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Dec 14, 2008 9:49 pm
Reply with quote

Hello,

Look here:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/dsnmc0f7/2.1.7.332?

Among other info that link contains:
Quote:
Explanation: In the TSO environment, the user has attempted to execute an application program without first establishing the correct execution environment by issuing the DSN command. In the IMS, CICS, or call attachment facility (CAF) environment, the user has attempted to execute an application program that is not using the correct language interface module.
Suggest you work with your dba or other system support people to resolve how to launch your code.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top