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 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 Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am


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