Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Db2 table update in batch mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Db2 table update in batch mode
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    Post subject:
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    Post subject: Reply to: Db2 table update in batch mode
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    Post subject:
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    Post subject: Reply to: Db2 table update in batch mode
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: 59
Location: home

PostPosted: Tue May 20, 2008 3:05 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10310
Location: italy

PostPosted: Tue May 20, 2008 3:05 pm    Post subject: Reply to: Db2 table update in batch mode
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 3 Fri Sep 15, 2017 9:20 am
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us