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: 2140
Location: USA

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: 3076
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 Unable to interpret a hex value to De... COBOL Programming 4
No new posts how to eliminate null indicator value... DB2 7
No new posts Format Binary file to EBCDIC JCL & VSAM 4
No new posts Unload and Load ISPF Table TSO/ISPF 4
No new posts ISPF Table to add a new column TSO/ISPF 1
Search our Forums:

Back to Top