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
 
Syntax for binding a COBOL program to an UDB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Mon Aug 01, 2005 6:29 pm    Post subject: Syntax for binding a COBOL program to an UDB
Reply with quote

Hello Friends,

Can any one give me the syntax for binding a COBOL program to an UDB. I'm provided with only the database name and the server name. The UDB is on a UNIX server

Thanks in advance,
Cheers, Twissi.
Back to top
View user's profile Send private message

twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Tue Apr 11, 2006 6:44 pm    Post subject:
Reply with quote

Hello all,

I found it myself !!

You need to have a PACKAGE-PLAN bind, here is the syntax:

//*
//* PACKAGE BIND
//*
//DB2BIND1 EXEC PGM=IKJEFT01,DYNAMNBR=40
//STEPLIB DD DSN=SYS1.DSNDSNC.SDSNLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//DBRMLIB DD DISP=SHR,DSN= ----------------> your DBRMLIB
//SYSIN DD DUMMY
//SYSTSIN DD *
DSN SYSTEM (DSNC)
BIND PACKAGE (XXXXXX.CCSPACK) -
MEMBER (PGM) -
OWNER (CCSUPDT) -
ACTION (REPLACE) -
VALIDATE (BIND) -
ISOLATION (CS) -
CURRENTDATA (NO) -
DEGREE (ANY) -
RELEASE (COMMIT) -
EXPLAIN (NO)
END
/*
//*
//* PLAN BIND
//*
//DB2BIND2 EXEC PGM=IKJEFT01,DYNAMNBR=40,COND=(0,NE)
//STEPLIB DD DSN=SYS1.DSNDSNC.SDSNLOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSTSIN DD *
DSN SYSTEM (DSNC)
BIND PLAN (PLANNAME) - ---------------------> Your PLAN NAME
PKLIST (XXXXXX.CCSPACK.*) - XXXXXX = your database name on UDB
ACTION (REPLACE) -
RETAIN -
ISOLATION (CS) -
CURRENTSERVER(SERVERNM) - --------------> your servername
CURRENTDATA (NO)
END
/*
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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