Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Read an input file and insert all the records into a table.
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: 3158
Location: Tucson AZ

PostPosted: Tue Jul 31, 2007 4:21 pm    Post subject: Re: Read an input file and insert all the records into a tab
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

Site Director


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

PostPosted: Tue Jul 31, 2007 9:32 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Aug 01, 2007 6:15 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us