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

code bind paramtrs 4 a prog using tables frm 2 diff sub sytm


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

New User


Joined: 13 Jul 2005
Posts: 5

PostPosted: Tue Aug 08, 2006 4:36 pm
Reply with quote

My program ABC accesses 3 tables from 2 diff sub systems. How to code the bind parameters for compiling this job?

currently, i have given the bind param in the compile jcl as :

DSN SYSTEM(DSNT)
BIND PACKAGE(PKG1) +
CURRENTDATA(NO) +
OWNER(XXX) +
QUALIFIER(XXX) +
ACTION(REPLACE) +
ISOLATION(CS) +
VALIDATE(BIND) +
MEMBER(ABC) +
ENABLE(BATCH)
BIND PACKAGE(PKG2) +
CURRENTDATA(NO) +
OWNER(YYY) +
QUALIFIER(YYY) +
ACTION(REPLACE) +
ISOLATION(CS) +
VALIDATE(BIND) +
MEMBER(ABC) +
ENABLE(BATCH)

i'm getting rc=8; it shows 'unsuccessful bind' with a sql code
= - 204. Pls tell me if there is some other way of coding the bind params.
Back to top
View user's profile Send private message
renjith
Warnings : 1

New User


Joined: 07 Aug 2006
Posts: 11

PostPosted: Wed Aug 09, 2006 7:41 am
Reply with quote

I guess u cant achieve ur goal by making any changes in ur bind card.
In order to achieve the same u must create aliases for those tables, (which are in other subsystem)in ur current subsystem.So that u can access those tables as local tables.And u can make use of the same bind card


thanks
renjith
Back to top
View user's profile Send private message
sh_ak

New User


Joined: 13 Jul 2005
Posts: 5

PostPosted: Wed Aug 09, 2006 6:51 pm
Reply with quote

Hi Renjith, thanks for the reply. I dont have any idea about creating aliases.could you pls tell me how to do this. would appreciate ur help icon_smile.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Aug 09, 2006 7:15 pm
Reply with quote

You can't create an alias and reference it from another subsystem. To read more about creating aliases, please refer to the fine manual.

O.
Back to top
View user's profile Send private message
renjith
Warnings : 1

New User


Joined: 07 Aug 2006
Posts: 11

PostPosted: Thu Aug 10, 2006 8:10 am
Reply with quote

ofer,

pls read ur manual clearly and respond


thanks
renjith
Back to top
View user's profile Send private message
trevor_rebelo

New User


Joined: 18 Aug 2005
Posts: 17

PostPosted: Mon Aug 21, 2006 2:46 pm
Reply with quote

Hi

Try putting the END statment after the bind card

e.g.
Bind Package1
.....
....
Bind Package2
....
...
END

2. if this packages are meant to bind a program to seperate subsystem then qualify the colletion ID with the location ID of the subsystems

Regards
Trevor
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top