View previous topic :: View next topic
|
Author |
Message |
sm_2009
New User
Joined: 10 May 2009 Posts: 72 Location: bangalore
|
|
|
|
hi
I want to bind three programs to a plan as follows.
I use DB21panel:
option 1 Bind Plan
Quote: |
BIND PLAN SSID: DSN1
COMMAND ===>
Enter DBRM data set name(s):
1 MEMBER ......... ===> pgm1
2 PASSWORD ....... ===>
3 LIBRARY ........ ===> 'OPERN.CICS3.DBRMLIB'
4 ADDITIONAL DBRMS? ......... ===> YES (YES to include more DBRMs)
Enter options as desired:
5 PLAN NAME ................. ===> pgmser (Required to create a plan)
6 CHANGE CURRENT DEFAULTS? .. ===> NO (NO or YES)
7 ENABLE/DISABLE CONNECTIONS? ===> NO (NO or YES)
8 INCLUDE PACKAGE LIST?...... ===> NO (NO or YES)
9 OWNER OF PLAN (AUTHID)..... ===> (Leave blank for your primaryID
10 QUALIFIER ................. ===> (For tables, views, and aliases
11 CACHESIZE ................. ===> (Blank, or value 0-4096)
12 ACTION ON PLAN ............ ===> ADD (REPLACE or ADD)
13 RETAIN EXECUTION AUTHORITY. ===> NO (YES to retain user list)
14 CURRENT SERVER ............ ===> (Location name)
15 INCLUDE PATH?.............. ===> NO (NO or YES)
PRESS: ENTER to process END to save and exit HELP for more information
|
Quote: |
. . . . . . . . . . . . . . . . . . . . . . . . . . .
BIND PLAN SSID: DSN1
COMMAND ===> SCROLL ===> PAGE
Enter DBRM name(s) for: PGMSER
CMD DBRM
"""" PGM1
"""" pgm2
"""" pgm3
******************************* Bottom of data ********************************
|
i get message as Bind successful.
but when i run jcl, it says PGM2 not found.
pls suggest if there is any other way to bind, or i am giving any parameter/ option wrong |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
program not found is not related to the bind process
the program <program name> was not found where it should have been,
review all the steps and each step result
precompilation yields two objects ...
a dbrm and a source
You described the process done on the DBRMs
have You completed the process for the source part
compilation and linkage editor ?? |
|
Back to top |
|
|
sm_2009
New User
Joined: 10 May 2009 Posts: 72 Location: bangalore
|
|
|
|
yes i have compiled three programs, do the bind, then run the control program pgm1, thru jcl. there control passes thru all paragraphs and where there is a call to pgm2. it stops and error msg is the module pgm2 was not found. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
so what do You want us to do?? |
|
Back to top |
|
|
sm_2009
New User
Joined: 10 May 2009 Posts: 72 Location: bangalore
|
|
|
|
i have written as
if indicator-success
call pgm2 using var1,
var2.
end-if
is there any chance that the positioning of call stmt be the reason? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
program not found means just that...
a program was not found
it does not make any difference the reason why the call statement was processed
the issue is not even db2 related |
|
Back to top |
|
|
Furor
New User
Joined: 04 Jun 2009 Posts: 30 Location: Bangalore
|
|
|
|
Quote: |
is there any chance that the positioning of call stmt be the reason |
No, this is not the reason.
Quote: |
error msg is the module pgm2 was not found. |
How is this message displayed,post the extact error message.Have you searched the loadlib for pgm2 , and is it the same loadlib you are referencing into your JCL. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
You are mixing the concepts -- BIND (DBRM) and the load module are different entities. To execute your program you need to direct JCL to the correct library, as suggested. Bind was successful, that's good but that does not guarantee that steplib libraries were coded correctly -- it's programmers' responsibility to code them correctly.
When you say "program not found"-- was there any abend as well (S806)?
To get better replies, please post the SYSOUT from the failed job as asked earlier. |
|
Back to top |
|
|
sm_2009
New User
Joined: 10 May 2009 Posts: 72 Location: bangalore
|
|
|
|
exact error message is
Quote: |
CEE3501S The module pgm2 was not found.
From compile unit pgm1 at entry point pgm1 at compile unit offset +00002DC0 at entry offset +00002DC0 at
address 0AD2FDC0. |
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Quote: |
CEE3501S The module module-name was not found.
Explanation: The system could not find the load module whose name was specified on the parameter list to the Language Environment load service, in the indicated library (job library or link library).
Programmer Response: Make sure the requesting program name was not incorrectly modified. Make sure that the indicated library is correct in the job step. Correct the error, and execute the job step again. |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10889 Location: italy
|
|
|
|
repeat on...
make sure that the program exists in the current search concatenation |
|
Back to top |
|
|
Furor
New User
Joined: 04 Jun 2009 Posts: 30 Location: Bangalore
|
|
|
|
sm_2009, Anuj has identified all the scenarios which may cause your execution to fail,Do let us know if you still face the errors (after covering the above mentioned scenarios). |
|
Back to top |
|
|
sm_2009
New User
Joined: 10 May 2009 Posts: 72 Location: bangalore
|
|
|
|
i checked the program name in calling and called programs, they are the same.
the load library specified in jcl contains the program. i checked that too. |
|
Back to top |
|
|
Furor
New User
Joined: 04 Jun 2009 Posts: 30 Location: Bangalore
|
|
|
|
Quote: |
have written as
if indicator-success
call pgm2 using var1,
var2.
end-if
|
Try this
Code: |
call 'pgm2' using var1, var2
|
|
|
Back to top |
|
|
sm_2009
New User
Joined: 10 May 2009 Posts: 72 Location: bangalore
|
|
|
|
yes the program name is within quotes.
still the error |
|
Back to top |
|
|
abhishek mitra
New User
Joined: 24 Feb 2008 Posts: 48 Location: Kolkata
|
|
|
|
hi SM_2009
Please see how is your sub module called. Is it Static Call or dynamic call.
If static then you have to link edit the called program along with your main program. Please see whether the link edit is successful. |
|
Back to top |
|
|
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
Hi sm_2009
Quote: |
call 'pgm2' using var1, var2
|
Is the program name pgm2 is same as the name coded in the PROGRAM-ID. of the COBOL program?
In your case the member name and the program-id should be the same.
Hope this will help you
Regards
Raghu |
|
Back to top |
|
|
|