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

How do a call to sql look like in cobol prog after precompil


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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
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
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 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 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
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top