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

-927 while debugging a program which call a cobol program


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
veeruspi

New User


Joined: 29 Dec 2005
Posts: 16
Location: mysore

PostPosted: Wed Feb 06, 2008 5:17 pm
Reply with quote

Hi All,
I am getting -927 while debugging a program which call a cobol program having an SQL. I can only debug the main program. Whne the control goes to sub program i am getting this error. can any one guide me in resolving this ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Feb 06, 2008 5:26 pm
Reply with quote

you say debugging..... under xpeditor?

did you tell xpeditor that this was a db2 execution and provide the plan name.

at any event...............if you had bothered to look up the description of the -927 you would have seen that you are not connected to DB2.

in batch, that requires executing via ikjeft.. and providing the necessary dsn and plan info.

suggest that you ask some of your peers how they go about executing and debugging db2 programs.
Back to top
View user's profile Send private message
veeruspi

New User


Joined: 29 Dec 2005
Posts: 16
Location: mysore

PostPosted: Wed Feb 06, 2008 5:39 pm
Reply with quote

hi,
I am doing trace for a cool gen program. this cool gen program calls an external action block where it calls the cobol program. for tracing(debuggigng) we create CLIST and execute that. When it returned from External Action lock i got this error. When i manually checked the code of the program, it had a simple SQL. Under successful CC it throws -927.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Feb 06, 2008 5:46 pm
Reply with quote

?????????????????? you are not making a connect with db2.

find out how your site executes batch jobs with db2 inorder to make a connect with db2 prior to invoking you primary module.

ASK YOU PEERS how to make a batch db2 connect.

nobody but you and your peers knows how this stuff is executed at your site.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
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
Search our Forums:

Back to Top