MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DB2 temporary tables

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
vani
Beginner


Joined: 28 May 2003
Posts: 51
Topics: 30

PostPosted: Tue Nov 11, 2003 10:58 pm    Post subject: DB2 temporary tables Reply with quote

I have a batch program which will execute 6 programs one after the other. Now in the first program if I create temporary tables, can they be used in subsequent programs for execution.

JCL looks like this
Code:

Step1    EXEC SAS,WORK='12000,500'
//*AS.SASLIST DD SYSOUT=C
//SAS.SASLIST DD SYSOUT=*
//SAS.SASLOG  DD SYSOUT=*
//CONFIG   DD DSN=T02154A.SAS.CONFIG(DB0T),DISP=SHR
//SASEXEC  DD DSN=T02154A.SAS.AUTOEXEC(TS$$004),DISP=SHR
//WORKPSIO DD DSN=T02154A.T2ELAS.WORK,DISP=OLD
//SYSIN    DD DSN=T02154A.ELAS.PARM(AWDBUP21),DISP=SHR
//*
//*** 3. TEIL: UPDATES
//*
//Step2     EXEC SAS,WORK='12000,500'
//*AS.SASLIST DD SYSOUT=C
//SAS.SASLIST DD SYSOUT=*
//SAS.SASLOG  DD SYSOUT=*
//CONFIG   DD DSN=T02154A.SAS.CONFIG(DB0T),DISP=SHR
//S ASEXEC  DD DSN=T02154A.SAS.AUTOEXEC(TS$$004),DISP=SHR
//WORKPSIO DD DSN=T02154A.T2ELAS.WORK,DISP=OLD
//SYSIN    DD DSN=T02154A.ELAS.PARM(AWDBUP31),DISP=SHR
//*
//*** 4. TEIL: UPDATES
//*
//Step3    EXEC SAS,WORK='12000,500'
//*AS.SASLIST DD SYSOUT=C
//SAS.SASLIST DD SYSOUT=*
//SAS.SASLOG  DD SYSOUT=*
//CONFIG   DD DSN=T02154A.SAS.CONFIG(DB0T),DISP=SHR
//SASEXEC  DD DSN=T02154A.SAS.AUTOEXEC(TS$$004),DISP=SHR
//WORKPSIO DD DSN=T02154A.T2ELAS.WORK,DISP=OLD
//SYSIN    DD DSN=T02154A.ELAS.PARM(AWDBUP41),DISP=SHR
//*

Or whether can we create temporary tables and retain them in buffers after execution of the program??

Please provide inputs on this
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Nov 12, 2003 3:07 am    Post subject: Reply with quote

vani,

You need to define a global temporary table in one of your programs which can be used later.

check this link for a detailed explanation of Working with temporary tables

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPH11/1.2.1.2?SHELF=&DT=20010710165542&CASE=

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group