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: 1652

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: 2963
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 File Aid Batch IBM Tools 7
No new posts To replace jobname in a file with ano... SYNCSORT 12
No new posts Converting fixed length file to excel... IBM Tools 7
No new posts Extract record using 2 input file int... JCL & VSAM 2
No new posts I want to append a record in an exist... CLIST & REXX 17
Search our Forums:

Back to Top