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
 

 

a called program not found

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: a called program not found
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Thu Jun 04, 2009 6:32 pm    Post subject: Reply to: a called program not found
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Thu Jun 04, 2009 6:36 pm    Post subject: Reply to: a called program not found
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Thu Jun 04, 2009 6:45 pm    Post subject: Reply to: a called program not found
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    Post subject: Reply to: a called program not found
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

Senior Member


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

PostPosted: Thu Jun 04, 2009 7:14 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Thu Jun 04, 2009 7:20 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Thu Jun 04, 2009 7:23 pm    Post subject: Reply to: a called program not found
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    Post subject: Reply to: a called program not found
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    Post subject:
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    Post subject: Reply to: a called program not found
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    Post subject:
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    Post subject:
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: 186
Location: chennai

PostPosted: Fri Jun 05, 2009 11:01 pm    Post subject: Reply to: a called program not found
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    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 I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm


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