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: 2019
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: 3051
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 FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top