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 connect db2 with assembler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
ssrinath22
Warnings : 2

New User


Joined: 08 Mar 2007
Posts: 7
Location: chennai

PostPosted: Tue Jul 10, 2007 7:51 pm    Post subject: How to connect db2 with assembler
Reply with quote

I want to know how to connect db2 with assembler. I want to fetch values in db2 table using assembler programs.

srinath
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jul 10, 2007 8:42 pm    Post subject:
Reply with quote

Hello,

You might look here: "Application Programming and SQL Guide" (the V8 manual number is SC18-7415) from the IBM Web site. Chapter 9 has a section to guide you through coding SQL statements in an Assembler program.

The db2 manuals are available from the "Manuals" link at the top of the web page.
Back to top
View user's profile Send private message
ssrinath22
Warnings : 2

New User


Joined: 08 Mar 2007
Posts: 7
Location: chennai

PostPosted: Sat Jul 21, 2007 10:36 am    Post subject: Re: How to connect db2 with assembler
Reply with quote

ya i have tried it sir but i couldnt get a clear picture out of it. Please give an example of source code if you can otherwise pls tell the way to approach it because iam not having that much experience but iam having good knowledge in mainframe assembler...


thanks
srinath
Back to top
View user's profile Send private message
ssrinath22
Warnings : 2

New User


Joined: 08 Mar 2007
Posts: 7
Location: chennai

PostPosted: Sat Jul 21, 2007 10:43 am    Post subject: Re: How to connect db2 with assembler
Reply with quote

hi all,

i have the knowledge in assembler language programming and i want to know how to connect or access db2 table values using assembly language programming.i got a pdf of "application programming and sql guide" but iam unable to get a clear picture from that pdf. can anyone please help me in finding out how fetch or retrieve values through embedded sql and host variables by assembler and also please help me to find the procedure for running the jcl of assembler db2..with this i have attached the screenshot of the assembler db2 source code...iam looking for favourable reply......


thanks and regards,
SRINATH
Back to top
View user's profile Send private message
ssrinath22
Warnings : 2

New User


Joined: 08 Mar 2007
Posts: 7
Location: chennai

PostPosted: Sat Jul 21, 2007 10:53 am    Post subject: Re: How to connect db2 with assembler
Reply with quote

Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jul 21, 2007 11:10 pm    Post subject:
Reply with quote

Hello,

How much db2 experience do you have?

If little or none, you might talk with people at your location who use cobol/db2. If you show them the db2/assembler manual, they can show you how they handle the same in cobol.

We have no db2/assembler at any of my sites, so i have no actual code to share.

If you post what problem(s) you have, we may be able to help. The screen shot you posted is of JCL not code.
Back to top
View user's profile Send private message
ssrinath22
Warnings : 2

New User


Joined: 08 Mar 2007
Posts: 7
Location: chennai

PostPosted: Sat Jul 21, 2007 11:21 pm    Post subject: Re: How to connect db2 with assembler
Reply with quote

but i have asked my collagues but they dono how to work in this scenario.iam not having experience in db2 but i hav some little knowledge in that.if u come across any type of this query pls do reply for me...actually i want to get db2 table values usin assembler like we do in cobol and db2 ...in runnin cobol jcl we use DSNHCOB and IKJEFT01...in same way can i no the procedures for running assembler and DB2.....

srinath
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Jul 22, 2007 6:24 am    Post subject:
Reply with quote

Hello srinath,

I believe i have caused you some confusion - the manual i referred you to does not appear to be in our "manuals" links icon_redface.gif

Here is the direct link to the manual that will hopefully provide better info for you.
http://publib.boulder.ibm.com/epubs/pdf/dsnapj14.pdf

I am used to going directly to the IBM sites and i should have verified that the manual was linked to here.

Please check that manual and if you have problems, post back here including the code that you have questions about or is not working.

Good luck.
Back to top
View user's profile Send private message
ssrinath22
Warnings : 2

New User


Joined: 08 Mar 2007
Posts: 7
Location: chennai

PostPosted: Sun Jul 22, 2007 9:12 am    Post subject: Re: How to connect db2 with assembler
Reply with quote

thank you dick i will read that pdf and i will reply to you.........

srinath
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Jul 22, 2007 9:24 am    Post subject:
Reply with quote

You're welcome icon_smile.gif

Again, my apology for the misdirection.
Back to top
View user's profile Send private message
pn2282

New User


Joined: 13 Jun 2007
Posts: 2
Location: chennai

PostPosted: Tue Jul 24, 2007 11:53 am    Post subject:
Reply with quote

hello dick i want some other pdf related to db2 assembler bcos my jcl is not running properly and also i want any sample programs for writing db2 assembler.pls help me out in this ....
srinth
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jul 24, 2007 9:42 pm    Post subject:
Reply with quote

Hello,

Quote:
i want any sample programs for writing db2 assembler.


Please re-read the previous replies -
Quote:
We have no db2/assembler at any of my sites, so i have no actual code to share.


If your jcl does not work, how would a different pdf help? If you post what is not working and the diagnostic information created by the system, we may be able to offer suggestions. If you talk with your system support people, they can tell you why your jcl is not working.
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am
No new posts Connect:Direct - RC=000000FF MSG=SVTM... R.Manivannan All Other Mainframe Topics 3 Fri Apr 21, 2017 1:30 am
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts DB2 CONNECT query mistah kurtz DB2 3 Fri Jul 15, 2016 6:37 pm
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm


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