Cobol DB2 sample code



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Cobol DB2 sample code

Postby som07 » Thu Jul 16, 2015 12:16 pm

Hi,
I am a complete newbie and I have to create a COBOL-DB2 code for the following:

1. It should read a file(Fixed block)
2. It should fetch data from table TABLE01 after reading file(Key for table)
3. Write another file with key fetched by table.

Can someone please provide me a way to do this?
:?: :?:
som07
 
Posts: 3
Joined: Thu Jul 16, 2015 12:11 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Cobol DB2 sample code

 

Re: Cobol DB2 sample code

Postby prino » Thu Jul 16, 2015 2:28 pm

So you're going to tell me that oursourcers nowadays take on clueless newbies and outsource their training to sites like this?

And if this homework, go back to your course material and start reading it again, or ask your tutor!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times

Re: Cobol DB2 sample code

Postby Robert Sample » Thu Jul 16, 2015 6:33 pm

Can someone please provide me a way to do this?
Yes. Start writing code.

The tone of your post makes you come across as someone who has never written a program. The responders on this forum provide help, we don't write code for you. And we are not here to teach you COBOL or DB2. If you have specific questions or problems, we can (usually) help resolve those -- but just asking us to write a program for you is not going to get you many responses. And if we do respond, since you are asking for professional work product, you should expect to pay for professional work product. The rate you would be charged would be in the 500 to 1500 US dollars per day for code.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Cobol DB2 sample code

Postby NicC » Thu Jul 16, 2015 6:45 pm

However, if you are not in an outsourcing company and not in education but just a newcomer to a company then the thing to do is find a similar program in your group.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Cobol DB2 sample code

Postby David Jackson » Fri Jul 17, 2015 1:01 am

What exactly have you done so far to solve this problem yourself?
Or are we to assume that you have been tasked with this exercise (for which you are likely getting paid) but you expect everybody else to donate their skills and time to providing you with the solution at no charge?
User avatar
David Jackson
 
Posts: 10
Joined: Wed Jan 26, 2011 5:09 am
Location: California
Has thanked: 0 time
Been thanked: 0 time

Re: Cobol DB2 sample code

Postby som07 » Fri Jul 17, 2015 11:32 am

Hi All,
Thanks for you replies. I appreciate it. I have written the code and it is working fine :)
som07
 
Posts: 3
Joined: Thu Jul 16, 2015 12:11 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Cobol DB2 sample code

Postby Terry Heinze » Fri Jul 17, 2015 6:56 pm

Sharing your solution, even if only pseudocode, might help others with a similar question.
.... Terry
Terry Heinze
 
Posts: 193
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 10 times
Been thanked: 11 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post