Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is global temp table in COBOL programing

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
Anand78

New User


Joined: 06 Mar 2006
Posts: 50
Location: PUNE

PostPosted: Fri Jul 21, 2006 4:11 pm    Post subject: What is global temp table in COBOL programing
Reply with quote

Hi all,

Can anybody tell me:

1> what is global temp table in COBOL programing?
2> for what purpose stored proc is created?
3> How data from online(JAVA) is received and how it will be
sent back?

thanks
Anand
Back to top
View user's profile Send private message

Lkmi

New User


Joined: 04 Mar 2005
Posts: 53
Location: Newyork

PostPosted: Mon Jul 24, 2006 9:03 pm    Post subject:
Reply with quote

Here you go..........

1. when a DB2 stored proc is called from java/some other client, the necessity to use a temp table in stored proc arises only when u are returning a result set to the calling module.

So If ur passing back a result set stored in a temp table then;

Two types of temp table can be created in db2(for this purpose)

1. Global temp table : these are temp tables which are present in the database but will not occupy any space. data is put in to them when the stored proc executes and then data is wiped off...thus it does not occupy more memory

2. another type is creating a temp table using JCL which would exist only when the process runs and at the end of process the table itself is wiped out

Note: In 1, the table exists and only data is wiped out whereas in 2 table and data are wiped out.


If u want to know to use temp tables in a stored proc.......send me a PM.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us