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 a global temporary table?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vimalravi83

New User


Joined: 28 Feb 2010
Posts: 21
Location: Bloomington, IL

PostPosted: Fri Apr 09, 2010 10:26 pm    Post subject: How to LOAD a global temporary table?
Reply with quote

Hello,
I have a requirement. I have a dataset contains EMPLOYEE-ID's. I created a temporary table inside my JCL and now I want to LOAD this table with above file content. Can we do it through any utility? I tried BMCLOAD step after this, but failed. BMC is not recognizing temporary tables. It is giving the message that;
Table TEMP_EMP_ID not found.
Here is the JCL I created;
Code:
//STEP10  EXEC DSNTSOP               
//SYSTSIN  DD  *                     
DSN SYSTEM(xxxx) RETRY(0) TEST(0)   
  RUN PROGRAM(DSNTEPE) PLAN(DSNTEPE)
/*                                   
//SYSIN    DD  *                     
  CREATE GLOBAL TEMPORARY           
    TABLE TEMP_EMP_ID     
    (                               
     EMP_ID          CHAR(09)     
    )                               
    CCSID EBCDIC;                   
 COMMIT;                             
/*
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 755
Location: Germany

PostPosted: Mon Apr 12, 2010 2:13 pm    Post subject:
Reply with quote

Hi !

You can't use LOAD with a Gl.Tmp.Tbl.

The declare statement defines a declared temporary table for the current application process. The declared temporary table resides in the work file database and its description does not appear in the system catalog. It is not persistent and cannot be shared with other application processes.

Each application process that defines a declared temporary table of the same name has its own unique description and instance of the temporary table. When the application process terminates, the temporary table is dropped.

Implement all the work you have to do in Programm.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


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