Db2 in cobol

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepx
    New Member
    • Feb 2008
    • 2

    Db2 in cobol

    where to specify the table name of db2 in cobol ?
    then how to use the cursor ?
    assign the tale field name to the variable in cobol?
  • sakumar9
    Recognized Expert New Member
    • Jan 2008
    • 127

    #2
    I would suggest you to have a look at the samples that are shipped with DB2. You can find these samples at SQLLIB/samples/cobol directory.

    In this directory, you will find many samples that will tell you how you can perform basic operations on databases like creating tables, inserting, selecting and displaying rows from tables etc, and many more.

    Please do let me know about your feedback on these samples.


    Thanks and Regards
    -- Sanjay

    Comment

    • sakumar9
      Recognized Expert New Member
      • Jan 2008
      • 127

      #3
      Samples that you can look at are:

      updat.sqb : Shows how you can CREATE, UPDATE, DELETE, and INSERT data into tables;

      trigsql.sqb : for SELECT

      Let me know if you need some more information.

      Regards
      -- Sanjay

      Comment

      • pradeepx
        New Member
        • Feb 2008
        • 2

        #4
        i am asking usage og db2 in cobol

        abt declaring the cursor and assigning the table field name to variable

        Comment

        • sakumar9
          Recognized Expert New Member
          • Jan 2008
          • 127

          #5
          I am not sure if you have checked these samples, we do have samples that tells you how you can DECLARE cursors and all the questions that you had.



          Regards
          -- Sanjay

          Comment

          Working...