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
 

 

declare COBOL path in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
kmadhavi24

New User


Joined: 27 Jul 2009
Posts: 14
Location: Hyderabad

PostPosted: Mon Jul 27, 2009 5:38 pm    Post subject: declare COBOL path in JCL
Reply with quote

Hi all

How to declare the path of the cobol code in a JCL?
if i mention that the PS010 EXEC PGM=CODETES, its giving an error.

"JCP0459E 'PGM=CODETES' DOES NOT EXIST"

Please help me out.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 27, 2009 5:41 pm    Post subject:
Reply with quote

Looks like another message from the useless JCL scanners.

What happens when you run it for real
Back to top
View user's profile Send private message
kmadhavi24

New User


Joined: 27 Jul 2009
Posts: 14
Location: Hyderabad

PostPosted: Mon Jul 27, 2009 5:45 pm    Post subject:
Reply with quote

when i submit the job, i am getting another error
ENDED AT IMF9S - ABENDED S806 U0000 CN(INTE
RNAL).

I cannot submit the job when the JCL scanner is showing an error right?
For more information, i am compiling the job using Changeman.
Back to top
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Mon Jul 27, 2009 5:46 pm    Post subject:
Reply with quote

Look up JOBLIB and STEPLIB in the manual link at the top of the page.
Back to top
View user's profile Send private message
kmadhavi24

New User


Joined: 27 Jul 2009
Posts: 14
Location: Hyderabad

PostPosted: Mon Jul 27, 2009 6:01 pm    Post subject:
Reply with quote

I think its not able to get the proper LOADLIB associated with the source code.
but, how to get the corresponding LOADLIB name, so that i can declare in the job.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7914
Location: Bellevue, IA

PostPosted: Mon Jul 27, 2009 6:04 pm    Post subject:
Reply with quote

As you've already been told, go to the manuals link at the top of the page. Find the JCL Language Reference manual. Read about STEPLIB and JOBLIB until you understand their purpose. Change your JCL appropriately. Submit it again. If you do not know what the load library name is to use, you will have to contact your site support group to find out where your program was compiled to -- we cannot possibly know your site.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Mon Jul 27, 2009 8:47 pm    Post subject:
Reply with quote

To find where you load module has been saved, you can also look at the BINDER (linkedit) output (it usualy comes after the COBOL compilation output).
Among MODULE MAP and other things, you will find a "SAVE OPERATION SUMMARY" which gives the LOAD LIBRARY name.
Back to top
View user's profile Send private message
kmadhavi24

New User


Joined: 27 Jul 2009
Posts: 14
Location: Hyderabad

PostPosted: Mon Jul 27, 2009 8:54 pm    Post subject:
Reply with quote

I am compiling this cobol code using Changeman
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Jul 27, 2009 8:57 pm    Post subject:
Reply with quote

kmadhavi24 wrote:
I am compiling this cobol code using Changeman


Have you considered asking a co-worker?
Back to top
View user's profile Send private message
Bill Murrell

New User


Joined: 14 Sep 2008
Posts: 10
Location: Oklahoma City, OK

PostPosted: Mon Jul 27, 2009 9:19 pm    Post subject:
Reply with quote

Craq Giegerich wrote:
kmadhavi24 wrote:
I am compiling this cobol code using Changeman


Have you considered asking a co-worker?


In some cultures asking a co-worker for help is considered a sign of weakness and is not done. This is why we get many questions here that SHOULD be directed to the askers co-workers.
Back to top
View user's profile Send private message
kmadhavi24

New User


Joined: 27 Jul 2009
Posts: 14
Location: Hyderabad

PostPosted: Mon Jul 27, 2009 9:34 pm    Post subject:
Reply with quote

wait.. wait...

I wont feel anything wrong to ask my co-workers.
As they are busy, i posted a question here....

Finally I solved it
Thank you every one.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Tue Jul 28, 2009 2:07 pm    Post subject:
Reply with quote

And what was the solution?
Back to top
View user's profile Send private message
Bill Murrell

New User


Joined: 14 Sep 2008
Posts: 10
Location: Oklahoma City, OK

PostPosted: Tue Jul 28, 2009 6:56 pm    Post subject:
Reply with quote

Anuj Dhawan wrote:
And what was the solution?


One of the reasons for this website it to find and post solutions to various problems we encounter in our jobs in the IT industry. So, yes, I agree with Anuj Dhawan, what was the solution to your problem?
Back to top
View user's profile Send private message
xknight

Active User


Joined: 22 Jan 2008
Posts: 117
Location: Liberty city

PostPosted: Wed Jul 29, 2009 10:00 am    Post subject:
Reply with quote

Abend 806 is causesd due to non existing of load module of cobol program.

Make sure you have given the same program name in your jcl, and Program-ID in your cobol pgm, and PDS member name are same.
Back to top
View user's profile Send private message
xknight

Active User


Joined: 22 Jan 2008
Posts: 117
Location: Liberty city

PostPosted: Wed Jul 29, 2009 10:02 am    Post subject:
Reply with quote

After that make sure you are using the right LOADLIB PDS....


Go to the loadlib PDS and ensure you have your program name load module..
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Wed Jul 29, 2009 10:52 am    Post subject:
Reply with quote

Quote:
Abend 806 is causesd due to non existing of load module of cobol program.
"non-existing" is subjective here -- on the contrary, module may exist but one did not direct the JCL to pick the load-module from the correct library.

Well, I wonder if OP will show up soon... icon_neutral.gif
Back to top
View user's profile Send private message
kmadhavi24

New User


Joined: 27 Jul 2009
Posts: 14
Location: Hyderabad

PostPosted: Wed Jul 29, 2009 12:30 pm    Post subject: Reply to: declare COBOL path in JCL
Reply with quote

in the JES spool of the file, i can get the required LOADLIB name.
So i added that Lib name in the list of JOBLIB names.
finally the problem got resolved.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Wed Jul 29, 2009 2:33 pm    Post subject:
Reply with quote

Glad to hear that you got it resolved and thanks for keeping us posted. icon_smile.gif

However, pardon my ignorance, but I didn't get this
Quote:
in the JES spool of the file, i can get the required LOADLIB name
?
Back to top
View user's profile Send private message
kmadhavi24

New User


Joined: 27 Jul 2009
Posts: 14
Location: Hyderabad

PostPosted: Wed Jul 29, 2009 3:05 pm    Post subject:
Reply with quote

As I compiled the cobol code using changeman, the corresponding loadlib file name was mentioned in the JES spool after submitting the job.
by keenly looking into that, somewhere i got the library name.

Please let me know in case of questions.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


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