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

Need to know how can I write a program for DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
varesh.et

New User


Joined: 04 Jul 2010
Posts: 1
Location: Pune

PostPosted: Tue Jul 06, 2010 4:11 am
Reply with quote

Hi, I am working for one of MNC. I have to write one COBOL-DB2 program, where I need to retrieve rows by using two keys. one with key A+B and other with only A. This table will have 35 pairs of columns+key(A+B) defined. I will be retrieving one pair of 35 columns at a time by using either of above key. However while inserting/updating data into this table I will not be having all the 35 columns data at a time. I am wondering how can I design this table and program, so that I can deal with this table for update, select or insert function if I will be having all 35 column data at a time or a piece of data out of these 35 columns at a time.

Please let me know your thoughts and suggestion.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jul 06, 2010 5:27 am
Reply with quote

Here is a link to an Application and Programmers Guidewhich will pretty much explain all,
as well as providing examples of programs, which can be found in the appendix.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue Jul 06, 2010 5:34 am
Reply with quote

varesh.et wrote:
I have to write one COBOL-DB2 program, where I need to retrieve rows by using two keys. one with key A+B and other with only A. This table will have 35 pairs of columns+key(A+B) defined. I will be retrieving one pair of 35 columns at a time by using either of above key. However while inserting/updating data into this table I will not be having all the 35 columns data at a time. I am wondering how can I design this table and program, so that I can deal with this table for update, select or insert function if I will be having all 35 column data at a time or a piece of data out of these 35 columns at a time.

[rant]
Why claim 'skill' in an area that you do not have?
Drop the DB2 entry or at least preface it with 'learning'.... icon_rolleyes.gif
[/rant]
varesh.et wrote:

Occupation: Software engineer
Mainframe Skills: TSO, ISPF, JCL, COBOL, DB2, IMS/DB, DC
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 Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Using API Gateway from CICS program CICS 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top