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 

Spufi JCL

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


Joined: 21 Apr 2004
Posts: 12
Topics: 9

PostPosted: Mon Jun 21, 2004 4:35 am    Post subject: Spufi JCL Reply with quote

The spufi query takes a long time and my session is locked and i cannot do any thing. Can I run spufi in JCl ? please send me the spufi jcl
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Jun 21, 2004 5:09 am    Post subject: Reply with quote

Murali,

Technically speaking you can run spufi in batch. I used to have a sample, but I have to dig for it and it was a big task to make it run.

You can use DSNTEP2 which is a sample dynamic SQL program in the PL/I language. With this program, you can execute any SQL statement that can be executed dynamically. You can use the source version of DSNTEP2 and modify it to meet your needs, or, if you do not have a PL/I compiler at your installation, you can use the object code version of DSNTEP2.

or you can even use DSNTIAUL which is a sample unload program. This program, which is written in assembler language, unloads some or all rows from up to 100 DB2 tables. With DSNTIAUL, you can unload data of any DB2 built-in data type or distinct type. You can unload up to 32KB of data from a LOB column. DSNTIAUL unloads the rows in a form that is compatible with the LOAD utility and generates utility control statements for LOAD. DSNTIAUL also lets you execute any SQL non-SELECT statement that can be executed dynamically.

Check this link for running DSNTIAUL, DSNTIAD, and DSNTEP2

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPH11/APPENDIX1.3?DT=20010710165542

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sriramla
Beginner


Joined: 22 Feb 2003
Posts: 74
Topics: 1

PostPosted: Mon Jun 21, 2004 2:17 pm    Post subject: Reply with quote

You can try this:
Code:
//Job Card

//BATCHSQL EXEC PGM=IKJEFT01
//STEPLIB DD  DSN=HLQ.DB2.SDSNLOAD,DISP=SHR
//SYSTSPRT DD SYSOUT=*                                       
//SYSTSIN  DD *                                               
 DSN SYSTEM(XXXX)
 RUN  PROGRAM(DSNTEP2) PLAN(DSNTEP2) -                       
      LIB('HLQ.DB2.RUNLIB.LOAD')                           
//SYSPRINT DD SYSOUT=*                                       
//SYSUDUMP DD SYSOUT=*                                       
//SYSIN    DD *                                               
   SELECT * FROM table name;

You need to replace XXXX with your sub system ID. Also change the DB2 Library names based on your shop installation standards.
Back to top
View user's profile Send private message
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