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
 

 

How to Load records from Sequential file to DB2. ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
manikumar_711
Currently Banned

New User


Joined: 11 Sep 2007
Posts: 7
Location: Chennai

PostPosted: Sun Jun 29, 2008 1:45 pm    Post subject: How to Load records from Sequential file to DB2. ?
Reply with quote

Hi,
If anyone can explain how to load record from sequential file to DB2 database ? give me some solutions.
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: Sun Jun 29, 2008 1:55 pm    Post subject:
Reply with quote

Hello manikumar_711 and welcome to the forums,

To do this you use a "load utility" or write code to insert the records.

If you talk with your peers or with your dba, they can tell you the proper way to do this on your system and they can provide the standard jcl to use on your system.

If you look in the forum, you will find some examples, but you should use what is standard for your system if you intend to actually run a load.
Back to top
View user's profile Send private message
debajyoti2040
Currently Banned

New User


Joined: 25 May 2007
Posts: 4
Location: Bangalore

PostPosted: Mon Jun 30, 2008 7:13 pm    Post subject: Reply to: How to Load records from Sequential file to DB2.
Reply with quote

Hi,

If you are a COBOl programmer it's very easy , just Read from an Input File and Insert using dynamic SQL in your database table.

Else you can use an LOAD utility as well.

//DSNUPROC.SYSIN DD *
LOAD DATA INDDN(SYSREC) RESUME YES
INTO TABLE userid.tablename(
fieldname POSITION (1) datatype(datasize)
.................................................................
.................................................................
)
/*
//DSNUPROC.SYSREC DD DSN=<Input dataset name>,DISP=SHR
Back to top
View user's profile Send private message
Richa Jain

New User


Joined: 18 Mar 2008
Posts: 35
Location: Gurgaon

PostPosted: Wed Jul 02, 2008 3:43 pm    Post subject:
Reply with quote

Hi,
you can use FILD option 3.7.2 to load record from sequential file to DB2 database.
Back to top
View user's profile Send private message
vicky11121982

New User


Joined: 21 Jun 2007
Posts: 9
Location: gurgaon

PostPosted: Wed Jul 02, 2008 5:44 pm    Post subject: Reply to: How to Load records from Sequential file to DB2.
Reply with quote

U can alwaz do by BMC load/unload utility and if that is not there in your shop a simple easytrieve program will work
Back to top
View user's profile Send private message
manikumar_711
Currently Banned

New User


Joined: 11 Sep 2007
Posts: 7
Location: Chennai

PostPosted: Thu Jul 03, 2008 10:02 pm    Post subject: hi , thankyou for all
Reply with quote

Hi Richa jain / dick sherrer
your answers is very nice. i have lot of questions. pls answer me..
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: Thu Jul 03, 2008 10:14 pm    Post subject:
Reply with quote

Hello,

As i mentioned before about loading a table:
Quote:
To do this you use a "load utility" or write code to insert the records.

If you talk with your peers or with your dba, they can tell you the proper way to do this on your system and they can provide the standard jcl to use on your system.

If you look in the forum, you will find some examples, but you should use what is standard for your system if you intend to actually run a load.


Quote:
your answers is very nice. i have lot of questions. pls answer me..
What are these questions? If they are new questions, each should begin a new topic.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


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