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 do a call to sql look like in cobol prog after precompil

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

New User


Joined: 20 Mar 2005
Posts: 8
Location: Bangalore

PostPosted: Tue May 10, 2005 11:17 am    Post subject: How do a call to sql look like in cobol prog after precompil
Reply with quote

Hi,
we all know that in a cobol db2 program during the precompilation process the sql statements are seperated from cobol program and put as DBRM, these statements are replaced in cobol program as cobol call statements, can anyone tell how this call looks like.

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

i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Tue May 10, 2005 12:31 pm    Post subject: look like
Reply with quote

Hi ,

I think if you go for compiler listing you will find CALL <name> type of statements for each and every sql statement in the program.

Any information more please let me know.


Cheers........

pavankumar
Back to top
View user's profile Send private message
vinayakaa

New User


Joined: 20 Mar 2005
Posts: 8
Location: Bangalore

PostPosted: Tue May 10, 2005 12:38 pm    Post subject:
Reply with quote

Thank you,
That is a way, but I dont have a DB2 access to compile a cobol db2 program. Please let me know how it looks like.


thanks,
Raju
Back to top
View user's profile Send private message
ajay_dheepak

New User


Joined: 12 May 2005
Posts: 32
Location: Chennai

PostPosted: Fri May 20, 2005 11:52 am    Post subject:
Reply with quote

U dont need to have DB2 access to compile a DB2 COBOL pgm. Just use the normal Compile JCL for DB2 to compile.

Or do one thig...use a DB2 precompiler and compile ur program the output will have all the DB2 statements translated to CALLs.

36_2_37.gif
Back to top
View user's profile Send private message
seegovind

New User


Joined: 02 Apr 2005
Posts: 3

PostPosted: Fri May 20, 2005 1:01 pm    Post subject:
Reply with quote

when we precompile the DB2 COBOL program, the compiler DSNHRC will split program into two parts,one is Cobol prog another one is Sql
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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts IDMS DC027007 T58 TASK:ADS2 PROG:ADSO... gpowell382 IDMS/ADSO 2 Fri Jun 30, 2017 11:52 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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