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
 

 

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: 10232
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 0 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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