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

Loading DB2 Session table in cobol program


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
atulxp

New User


Joined: 27 Nov 2005
Posts: 15
Location: Phoenix

PostPosted: Thu Jan 15, 2009 1:11 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jan 15, 2009 8:50 pm
Reply with quote

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
View user's profile Send private message
atulxp

New User


Joined: 27 Nov 2005
Posts: 15
Location: Phoenix

PostPosted: Fri Jan 16, 2009 11:34 am
Reply with quote

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
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Fri Jan 16, 2009 2:38 pm
Reply with quote

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
View user's profile Send private message
atulxp

New User


Joined: 27 Nov 2005
Posts: 15
Location: Phoenix

PostPosted: Fri Jan 16, 2009 4:43 pm
Reply with quote

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
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Load new table with Old unload - DB2 DB2 6
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top