View previous topic :: View next topic
|
Author |
Message |
atulxp
New User
Joined: 27 Nov 2005 Posts: 15 Location: Phoenix
|
|
|
|
I want to load data from PS file to session table inside a cobol program through DB2 load utilities.
I want to use DB2 load utility as row by row load is affecting performace.
Could you please advise, if this is possible also if yes then what is syntax. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you have a "loadable" sequential file, consider loading the table using the load utility directly. A straight load does not need a cobol program.
If validation of the data or summaries are needed, do this before and/or after the load, not during the load. |
|
Back to top |
|
|
atulxp
New User
Joined: 27 Nov 2005 Posts: 15 Location: Phoenix
|
|
|
|
I do not want to create permanent tables hence I want to use session tables & load data to session tables.
Session tables would be persistant inside program only so I want some quick load method which could be used in cobol program. |
|
Back to top |
|
|
ashimer
Active Member
Joined: 13 Feb 2004 Posts: 551 Location: Bangalore
|
|
|
|
the session table would be created for the session where your program is executing ... now how to load this using an utility in between ? better read the file and insert in your table .... one way is create an array say 500 in number and read the data into this array and then use multi-insert to insert all 500 at a time to the table ...this will be much faster than row by row insert ... |
|
Back to top |
|
|
atulxp
New User
Joined: 27 Nov 2005 Posts: 15 Location: Phoenix
|
|
|
|
I want to invoke DSNUTILS inside cobol program. I could get example where RUNSTAT was done inside cobol program using DSNUTILS however I want for Load also want to know, if DSNUTILS allow load in session table. |
|
Back to top |
|
|
|