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

How to connect db2 with assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Tue Jul 10, 2007 8:42 pm
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
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
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
Reply with quote

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

Moderator Emeritus


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

PostPosted: Sat Jul 21, 2007 11:10 pm
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
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

Moderator Emeritus


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

PostPosted: Sun Jul 22, 2007 6:24 am
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
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

Moderator Emeritus


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

PostPosted: Sun Jul 22, 2007 9:24 am
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
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

Moderator Emeritus


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

PostPosted: Tue Jul 24, 2007 9:42 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Connect Direct 6.3 for Z/OS All Other Mainframe Topics 20
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Finding Assembler programs PL/I & Assembler 5
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top