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

Db2 table update in batch mode


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

New User


Joined: 09 Apr 2008
Posts: 18
Location: India

PostPosted: Tue May 20, 2008 11:49 am
Reply with quote

I have to update a DB2 table using an update query through batch.Is there any JCL available for this?
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Tue May 20, 2008 11:55 am
Reply with quote

search for SPUFI in batch or DSNTIAD...
Back to top
View user's profile Send private message
Anu R

New User


Joined: 09 Apr 2008
Posts: 18
Location: India

PostPosted: Tue May 20, 2008 12:03 pm
Reply with quote

hi acevedo,

Thanks for the reply but is ther an option to run SPUFI in batch mode...we have only online.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Tue May 20, 2008 12:22 pm
Reply with quote

DSNTEP2 aka Spufi in batch.
Back to top
View user's profile Send private message
Anu R

New User


Joined: 09 Apr 2008
Posts: 18
Location: India

PostPosted: Tue May 20, 2008 2:56 pm
Reply with quote

I used the following JCL

//STP0100 EXEC PGM=IKJEFT01
//SYSREC00 DD SYSOUT=*
//SYSPUNCH DD DUMMY
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DB2T)
RUN PROGRAM(DSNSTEP2) PLAN(DSNSTEP2) LIB('DB2TEST.RUNLIB.LOAD')
END
/*
//SYSIN DD *
my SQL query
/*

and I get the following error..does anyone have a solution for this?

READY
DSN SYSTEM(DB2T)
COMMAND DSN NOT FOUND
READY
RUN PROGRAM(DSNSTEP2) PLAN(DSNSTEP2) LIB('DB2TEST.RUNLIB.LOAD')
INVALID KEYWORD, PLAN(DSNSTEP2)
READY
END
READY
END
Back to top
View user's profile Send private message
ruodeer

New User


Joined: 06 Jul 2007
Posts: 58
Location: home

PostPosted: Tue May 20, 2008 3:05 pm
Reply with quote

Quote:
READY
DSN SYSTEM(DB2T)
COMMAND DSN NOT FOUND
READY
RUN PROGRAM(DSNSTEP2) PLAN(DSNSTEP2) LIB('DB2TEST.RUNLIB.LOAD')
INVALID KEYWORD, PLAN(DSNSTEP2)
READY
END
READY
END


This indicates that you are not able to use 'DSN', I think you should specify the STEPLIB DD DSN=your db2 load lib containing module DSNSTEP2 , additionally ,you should specify the correct subsystem ID.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 20, 2008 3:05 pm
Reply with quote

Ask Your support for the proper jcl and libraries to use...
looks like a db2 library is not in the search concatenation
( something like
Code:
DSN910.SDSNLOAD
DSN910.SDSNLOAD2
DSN910.SDSNEXIT
)
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 HILITE on Browse mode? TSO/ISPF 2
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
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
Search our Forums:

Back to Top