View previous topic :: View next topic
|
Author |
Message |
Bhagyalakshmi C
New User
Joined: 24 Jul 2007 Posts: 38 Location: Bangalore
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Bhagyalakshmi C
New User
Joined: 24 Jul 2007 Posts: 38 Location: Bangalore
|
|
|
|
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 |
|
|
kgumraj2
New User
Joined: 01 Aug 2007 Posts: 42 Location: Hyderabad
|
|
|
|
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 |
|
|
Bhagyalakshmi C
New User
Joined: 24 Jul 2007 Posts: 38 Location: Bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|