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

a called program not found


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

New User


Joined: 10 May 2009
Posts: 72
Location: bangalore

PostPosted: Thu Jun 04, 2009 6:27 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jun 04, 2009 6:32 pm
Reply with quote

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
View user's profile Send private message
sm_2009

New User


Joined: 10 May 2009
Posts: 72
Location: bangalore

PostPosted: Thu Jun 04, 2009 6:35 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jun 04, 2009 6:36 pm
Reply with quote

so what do You want us to do??
Back to top
View user's profile Send private message
sm_2009

New User


Joined: 10 May 2009
Posts: 72
Location: bangalore

PostPosted: Thu Jun 04, 2009 6:39 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jun 04, 2009 6:45 pm
Reply with quote

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
View user's profile Send private message
Furor

New User


Joined: 04 Jun 2009
Posts: 30
Location: Bangalore

PostPosted: Thu Jun 04, 2009 6:51 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jun 04, 2009 7:14 pm
Reply with quote

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
View user's profile Send private message
sm_2009

New User


Joined: 10 May 2009
Posts: 72
Location: bangalore

PostPosted: Thu Jun 04, 2009 7:17 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jun 04, 2009 7:20 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jun 04, 2009 7:23 pm
Reply with quote

repeat on...
make sure that the program exists in the current search concatenation
Back to top
View user's profile Send private message
Furor

New User


Joined: 04 Jun 2009
Posts: 30
Location: Bangalore

PostPosted: Thu Jun 04, 2009 7:27 pm
Reply with quote

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
View user's profile Send private message
sm_2009

New User


Joined: 10 May 2009
Posts: 72
Location: bangalore

PostPosted: Thu Jun 04, 2009 7:30 pm
Reply with quote

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
View user's profile Send private message
Furor

New User


Joined: 04 Jun 2009
Posts: 30
Location: Bangalore

PostPosted: Thu Jun 04, 2009 7:52 pm
Reply with quote

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
View user's profile Send private message
sm_2009

New User


Joined: 10 May 2009
Posts: 72
Location: bangalore

PostPosted: Fri Jun 05, 2009 3:16 pm
Reply with quote

yes the program name is within quotes.
still the error
Back to top
View user's profile Send private message
abhishek mitra

New User


Joined: 24 Feb 2008
Posts: 48
Location: Kolkata

PostPosted: Fri Jun 05, 2009 3:37 pm
Reply with quote

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
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Fri Jun 05, 2009 11:01 pm
Reply with quote

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
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 Using API Gateway from CICS program CICS 0
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top