Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Sqlcode -927 in calling a sql stored procedure inside cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: Sqlcode -927 in calling a sql stored procedure inside cobol
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: 8593
Location: Back in jolly old England

PostPosted: Sat Dec 13, 2008 7:49 pm    Post subject:
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    Post subject:
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

Site Director


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

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

Hello,

Look here:
http://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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us