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

COBOL-DB2


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SJTCrack97

New User


Joined: 28 Oct 2021
Posts: 3
Location: INDIA

PostPosted: Thu Oct 28, 2021 12:19 am
Reply with quote

Hi there can anyone provide me the cobol program to copy data present in db2 table (like: customer Number, customer name etc.) to a sequential file ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu Oct 28, 2021 12:28 am
Reply with quote

Wouldn't the result depend upon the specifics of the DB2 table?

And this is a help forum -- we don't do urgent. If you need urgent help, convince your management to hire a consultant to help you.
Back to top
View user's profile Send private message
SJTCrack97

New User


Joined: 28 Oct 2021
Posts: 3
Location: INDIA

PostPosted: Thu Oct 28, 2021 12:33 am
Reply with quote

Yeah like reading the table and then writing it to sequential file...
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Thu Oct 28, 2021 12:59 am
Reply with quote

SJTCrack97 wrote:
Yeah like reading the table and then writing it to sequential file...

Google: READ DB2 COBOL EXAMPLE
Google: WRITE FILE COBOL EXAMPLE
Back to top
View user's profile Send private message
SJTCrack97

New User


Joined: 28 Oct 2021
Posts: 3
Location: INDIA

PostPosted: Thu Oct 28, 2021 1:18 am
Reply with quote

Can anyone provide the combined COBOL code ?
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Thu Oct 28, 2021 1:34 am
Reply with quote

SJTCrack97 wrote:
Can anyone provide the combined COBOL code ?


This is a help forum, not do-my-job-for-me forum. icon_pai.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Oct 28, 2021 2:04 pm
Reply with quote

SJTCrack97 wrote:
Can anyone provide the combined COBOL code ?


Sure, ik can do that. I charge you 1000 euro a line of coding.

Deal? You have to pay upfront.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3076
Location: NYC,USA

PostPosted: Fri Oct 29, 2021 7:55 am
Reply with quote

Moved to students section.
Please Read cursors
www.ibm.com/docs/fr/db2-for-zos/12?topic=applications-row-retrieval-cursor
For sample program search On the top of this forum or Google it.
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 -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
No new posts Compile Sp Cobol base COBOL Programming 1
No new posts SQLCODE=-311 in Cobol SP-DB2. COBOL Programming 2
Search our Forums:

Back to Top