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

Read an input file and insert all the records into a table.


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bhagyalakshmi C

New User


Joined: 24 Jul 2007
Posts: 38
Location: Bangalore

PostPosted: Tue Jul 31, 2007 12:49 pm
Reply with quote

Hi,

I need to read an inputfile and insert all the records into the table.
How it can be done.. can anyone help me.Tell me the things which i need to learn to do this task and also provide the necessary link.
Help me!!!!!!!!!!

Thanks!!!!!!!!
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Jul 31, 2007 4:21 pm
Reply with quote

Bhagyalakshmi C wrote:
I need to read an inputfile and insert all the records into the table.
How it can be done.. can anyone help me.Tell me the things which i need to learn to do this task and also provide the necessary link.
It can be done easily....
What kind of "table" do you want i loaded into?
How do you want it loaded, program or utility?
What language and/or what utility?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 31, 2007 9:32 pm
Reply with quote

Hello,

If you describe what kind of data is in the file, what kind of table (in memory or database) you need to load into and what language you are going to use (assembler or pl/i), we may be able to offer suggestions.

Have you started writing some code? If you have begun, post what you have so far and what problems/questions you have, we can provide some info.

Keep in mind that your "table load" may be limited by the number of records in the file.
Back to top
View user's profile Send private message
Bhagyalakshmi C

New User


Joined: 24 Jul 2007
Posts: 38
Location: Bangalore

PostPosted: Wed Aug 01, 2007 1:33 pm
Reply with quote

Hi..
Thanks all,
yes. these are the details.
I have a file(PS) which has the employee details.i have a employee table also.
i need to read that file and insert the records into the employee table.
I need to code in PLI.
please tell me all the steps,which should be done.I dont know about the utilites that heve to use. This is the requirment given.Help me!!!!

Thank you..
Back to top
View user's profile Send private message
kgumraj2

New User


Joined: 01 Aug 2007
Posts: 42
Location: Hyderabad

PostPosted: Wed Aug 01, 2007 1:39 pm
Reply with quote

Hi,

If the layout of both file and table matches, Better you can use Load utility.

I dont know PL1 much. But I can help you with Logic..

Quote:
read file
at end
stop run
not at end
insert into table


You can handle Sqlcodes as per standards of your shop.
Thanks.
Back to top
View user's profile Send private message
Bhagyalakshmi C

New User


Joined: 24 Jul 2007
Posts: 38
Location: Bangalore

PostPosted: Wed Aug 01, 2007 1:43 pm
Reply with quote

Hi,

Thank you,
ok.. i'll try..
can any one tell me more about load utility and how to use it.

Thanks!!!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 01, 2007 6:15 pm
Reply with quote

Hello,

If you look in the DB2 forum, you can find several topics about the load utility. If you find something that is confusing, post your questions back here and we may be able to offer suggestions.

You might also look in the DB2 manuals for example utility load processes. DB2 documentation is lkinked-to via the "Manuals" link at the top of these web pages.
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top