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

How to run SPUFI in batch


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

New User


Joined: 15 Dec 2005
Posts: 5

PostPosted: Thu Apr 13, 2006 7:35 am
Reply with quote

How to run SPUFI in batch


I have seen
"How to run SPUFI in batch"

groups.google.com/group/bit.listserv.db2-l/browse_thread/thread/5ea4629d20bee493/5b9806f06c07f6ae%235b9806f06c07f6ae

Who had did it? Can you give some detail?
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Thu Apr 13, 2006 10:08 am
Reply with quote

Code:
//RUNSPUF EXEC PGM=IKJEFT01,DYNAMNBR=20
     //SYSTSPRT DD SYSOUT=*
     //SYSTSIN  DD *
      DSN SYSTEM(DSN)
      RUN  PROGRAM(DSNTEP2) PLAN(DSNTEP1) PARMS('/ALIGN(LHS) MIXED') -
            LIB('DSN710.RUNLIB.LOAD')
     //SYSPRINT DD SYSOUT=*
     //SYSUDUMP DD SYSOUT=*
     //SYSIN    DD *
     SELECT * FROM A2TTRD.C345TY;


Hope this helps.
Back to top
View user's profile Send private message
abc2000

New User


Joined: 15 Dec 2005
Posts: 5

PostPosted: Fri Apr 14, 2006 5:39 pm
Reply with quote

difference beetween DB2 SPUFI vs DSNTEP2


1. if error DB2 SPUFI can rollback, but DSNTEP2 can not rollback,this
would cause data integrity problem, it is very important


2. DSNTEP2 output line cannot exceed 133bytes,SPUFI can produce fromatted output, a line up to 32767bytes
Back to top
View user's profile Send private message
Shaket999

New User


Joined: 08 Jan 2007
Posts: 1
Location: delhi

PostPosted: Thu Feb 01, 2007 5:33 pm
Reply with quote

The example given above uses DSNTEP2

is it possible to run SPUFI in batch ( having ROLLBACK )


regrds,
shaket
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Feb 01, 2007 6:26 pm
Reply with quote

SPUFI was meant to be used as an interactive utility. With tedious work (Allocating files, filling ISPF variables, finding the executables etc.) it might be possible to invoke it in batch, but I don't think it worth the effort.

You can write your own REXX (to be run in foregroung), using DSNREXX interface.

O.
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 DELETE SPUFI DB2 1
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
Search our Forums:

Back to Top