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

declare COBOL path in JCL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 8796
Location: Welsh Wales

PostPosted: Mon Jul 27, 2009 5:41 pm
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
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
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
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: 8700
Location: Dubuque, Iowa, USA

PostPosted: Mon Jul 27, 2009 6:04 pm
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: 1353
Location: Israel

PostPosted: Mon Jul 27, 2009 8:47 pm
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
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
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
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
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

Superior Member


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

PostPosted: Tue Jul 28, 2009 2:07 pm
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
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
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
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

Superior Member


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

PostPosted: Wed Jul 29, 2009 10:52 am
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
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

Superior Member


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

PostPosted: Wed Jul 29, 2009 2:33 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
No new posts BPXBATCH SFTP to remote path having s... All Other Mainframe Topics 6
No new posts Compile Sp Cobol base COBOL Programming 1
Search our Forums:

Back to Top