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
 

 

Bind Problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
mpawan
Warnings : 2

New User


Joined: 03 Nov 2008
Posts: 42
Location: Pune

PostPosted: Wed Aug 12, 2009 7:49 pm    Post subject: Bind Problem
Reply with quote

I have coded a JCL to Bind my programs. Following is the code.

//SM0019A JOB (XT00),'DB2BINDA',SCHENV=BSYS,
// MSGLEVEL=(1,1),MSGCLASS=H,NOTIFY=&SYSUID
/*ROUTE PRINT LOCAL
//BIND EXEC PGM=IKJEFT01
//STEPLIB DD DSN=SYS2.TOLLMTC.PRODLOAD,DISP=SHR
// DD DSN=DB24.REF.SDSNLOAD,DISP=SHR
// DD DSN=DB24.REF.SDSNEXIT,DISP=SHR
// DD DSN=SYS1.SCEERUN,DISP=SHR
//DBRMLIB DD DSN=CMN.TOLE.STGR.#000246.DBR,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD DUMMY
//SYSIN DD DSN=TOLLNA.T.TEST.DB2(SUBRAT),DISP=SHR

TOLLNA.T.TEST.DB2(SUBRAT)

DSN SYSTEM(DB22)
BIND PLAN(SUBRATDB) -
MEMBER(DB2TABLE) -
OWNER(DB2C202) -
QUALIFIER(DB2C202) -
ACTION(ADD) -
ISOLATION(CS) -
RETAIN -
ACQUIRE(USE) -
EXPLAIN(YES) -
VALIDATE(BIND) -
FLAG(I) -
RELEASE(COMMIT)

when i execute my JCL it gives a RC=0
But when i am chekin in my DB2 for the plan name SUBRATDB through DB2 system catalog i am not able to see my plan name?


Can you tell where i am getting wrong??
Back to top
View user's profile Send private message

Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
Location: Richfield, MN, USA

PostPosted: Wed Aug 12, 2009 8:10 pm    Post subject:
Reply with quote

It would help if we could see ALL of your output (SYSTSPRT is the important one I think).
Back to top
View user's profile Send private message
mpawan
Warnings : 2

New User


Joined: 03 Nov 2008
Posts: 42
Location: Pune

PostPosted: Wed Aug 12, 2009 8:15 pm    Post subject:
Reply with quote

READY
BIND PLAN(PAWAN) OWNER(DB2C202) MEMBER(DB2TABLE) LIBRARY('CMN.TOLE.STGR.
IND) ISOLATION(CS) RETAIN ACQUIRE(USE)
RELEASE(COMMIT)
COMMAND BIND NOT FOUND
READY
DSN SYSTEM(DB24) RETRY(3)
DSN
END
READY
END
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Wed Aug 12, 2009 8:19 pm    Post subject:
Reply with quote

Quote:
COMMAND BIND NOT FOUND
I would have thought this error pretty self evident. You need to contact your site support group and have them give you the JCL to use. You've obviously coded up something wrong and since this is site specific data, you're probably not going to be able to resolve this here -- only by contacting your site support group.
Back to top
View user's profile Send private message
wanderer

Active User


Joined: 05 Feb 2007
Posts: 199
Location: Sri Lanka

PostPosted: Wed Aug 12, 2009 10:48 pm    Post subject: Reply to: Bind Problem
Reply with quote

DB2 commands like BIND that run through TSO go to DD SYSTSIN, not SYSIN. Try that.

I am surprised with the output you have shown. The way u have run it SYSTSPRT shouldn't have anything. The output u gave is not for the JCL you gave earlier.

In JCL you have,

DSN SYSTEM(DB22)


In output u showed,

DSN SYSTEM(DB24) RETRY(3)

Besides as per output, you are executing BIND before DSN interface.

It is a good idea to read up DB2 manual on bind, Command Reference before trying randomly.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Aug 13, 2009 12:47 am    Post subject:
Reply with quote

Hello,

Quote:
I have coded a JCL to Bind my programs.
Well, i strongly suggest you discard this. . .

Compile &/or link &/or bind jcl should not be created by the developer(s). There is standard jcl already installed and it should be used.
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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm


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