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
 

 

How to Solve -927 SQLCODE in a cobol-DB2 program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rupsb01

New User


Joined: 09 Jul 2009
Posts: 2
Location: Bangalore

PostPosted: Thu Jul 09, 2009 9:52 am    Post subject: How to Solve -927 SQLCODE in a cobol-DB2 program
Reply with quote

Hi,

I am getting -927 SQL code when I am trying to update a DB2 table.
When I did a QW on the SQLcode,It says a proper connection has not been established.
Please suggest.

Regards,
Rups
Back to top
View user's profile Send private message

radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Thu Jul 09, 2009 10:11 am    Post subject:
Reply with quote

Pls check your link edit listing and run-time JCL. DB2 application programs should be invoked under the RUN subcommand of the DSN command processor in tso.

Try using NODYNAM option in compilation, if you are currently using DYNAM.

Hope this helps.
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Thu Jul 09, 2009 10:14 am    Post subject:
Reply with quote

how the program was invoked? Is it batch of foreground?
check for messages whether it shows that they should run under DSN interface. --- DSN RUN PROGRAM() in SYSTIN and EXEC pgm shud be IKJEFT01.

Hope this helps.
Back to top
View user's profile Send private message
rupsb01

New User


Joined: 09 Jul 2009
Posts: 2
Location: Bangalore

PostPosted: Thu Jul 09, 2009 1:37 pm    Post subject: Reply to: How to Solve -927 SQLCODE in a cobol-DB2 program
Reply with quote

Thanx a zillion radhakrishnan it worked!!!!!!!!!
I had not used IKJEFT icon_redface.gif
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts RULES(NOEVENPACK) in cobol jackzhang75 COBOL Programming 5 Wed Mar 29, 2017 12:47 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm


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