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
 

 

query on Non db2 cobol program

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

New User


Joined: 24 Jan 2006
Posts: 28

PostPosted: Wed Apr 14, 2010 11:10 am    Post subject: query on Non db2 cobol program
Reply with quote

In our workshop, we have a cobol program which was last compiled in 2004.

This program just has include exec SQL SQLCA end-exec
no other query.
I am not able to see any DBRM also for this code.

When i try to compile it again using db2 option, it gives error that dbrm is empty, and when i compile it as non-db2, it gives error that 'exec sql' is not recognized.

I want to know, how this program was initially created in 2004 where it got compiled and installed properly

Thanks in advance
cdhami
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Wed Apr 14, 2010 11:22 am    Post subject: Reply to: query on Non db2 cobol program
Reply with quote

Quote:
I want to know, how this program was initially created in 2004 where it got compiled and installed properly


unlikely You will find any useful answer outside Your organization
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Apr 14, 2010 3:40 pm    Post subject: Re: query on Non db2 cobol program
Reply with quote

cdhami wrote:
When i try to compile it again using db2 option, it gives error that dbrm is empty, and when i compile it as non-db2, it gives error that 'exec sql' is not recognized.

I want to know, how this program was initially created in 2004 where it got compiled and installed properly
Probably, the pre-compile translator didn't care if the dbrm was empty....
Why is the SQLCA included?
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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
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 Omegamon for DB2 query ashek15 DB2 0 Wed Feb 15, 2017 11:25 am
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm


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