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

Read a flat file and update DB2 table


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Blackjarvis

New User


Joined: 12 Jul 2022
Posts: 1
Location: Italy

PostPosted: Tue Jul 12, 2022 8:49 pm
Reply with quote

Hi
I'm new to this 'world' and I'm trying to learn something about Mainframes in general.
I'm looking for an 'how to' guide to Read a flat file and then make a query with the data i just Read.

In example

01929,0000,00000,000
.
.

Is a single row given by the input file.
I have multiple rows in it.

Now, i know i have to Read the file once rows at a time, but how to repeat the query n-Times where n-Times is the number of rows, and each time with different input?

Thanks
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 1564

PostPosted: Mon Jul 18, 2022 12:22 am
Reply with quote

There are 1000+ different tools available to perform this task.
The only exceptions from that list are: JCL, and VSAM.

How do you plan to work with your DB2?
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


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

PostPosted: Mon Jul 18, 2022 5:13 am
Reply with quote

Write a cobol Db2 program
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Conditional replace values in output ... DFSORT/ICETOOL 3
No new posts COBOL - create and write to output fi... COBOL Programming 0
No new posts Inserting variable length into output... JCL & VSAM 2
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Compare files with duplicates in one ... COBOL Programming 14
Search our Forums:

Back to Top