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
 

 

JCL Error from DB2 Precompiler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mfhelp
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 33

PostPosted: Wed Oct 17, 2007 5:16 pm    Post subject: JCL Error from DB2 Precompiler
Reply with quote

Why do we get JCL Error when Precompilation fails?
Why dont we get non-zero MAXCC value?
If there exist errors, Compilation of non-DB2 program or running any utility throws non-zero maxcc, then why not DSNHPC?
Back to top
View user's profile Send private message

vgreddych

New User


Joined: 23 May 2007
Posts: 2
Location: coimbatore

PostPosted: Wed Oct 17, 2007 6:51 pm    Post subject:
Reply with quote

Hi mfhelp,

I dont know the exact reason why it will throw JCL error when a DB2 precompilation fails.But I too got the same JCL error when IDMS precompilation failed.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Wed Oct 17, 2007 7:23 pm    Post subject: Reply to: JCL Error from DB2 Precompiler
Reply with quote

If You had posted the job log maybe we could have some hint on what' s happening

without it anything would be useless speculation
Back to top
View user's profile Send private message
raviprasath_kp
Warnings : 1

New User


Joined: 20 Feb 2005
Posts: 65
Location: chennai

PostPosted: Thu Oct 18, 2007 4:06 pm    Post subject:
Reply with quote

please give the exact error then we will try to provide some solution
Back to top
View user's profile Send private message
vgreddych

New User


Joined: 23 May 2007
Posts: 2
Location: coimbatore

PostPosted: Thu Oct 18, 2007 9:23 pm    Post subject:
Reply with quote

Hi,

The JCL error is due due to the IDMS precompiler is not recognizing the DB2 codes(SQL) present in the same program.
Since the error is in program i would like to know why compile job abend with JCL error insted of MAXCC return-code.

Please find the attachment to get the idea of error in the program.
Also please find my relevent post for the compiler issue where i come across this error:
http://ibmmainframes.com/viewtopic.php?t=25246&sid=3e3011c38bdbbca38daaf6de32480598


Thanks for your quick reply.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Oct 18, 2007 9:35 pm    Post subject:
Reply with quote

Hello,

If you have a "jcl error" that is not understood, you need to post the diagnostic info from the spooled output.

Neither the link above or the attached screenshot show a "jcl error"?

For anyone here to be able to help, you need to provide details for someone to work with.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Thu Oct 18, 2007 11:58 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

If you have a "jcl error" that is not understood, you need to post the diagnostic info from the spooled output.

Neither the link above or the attached screenshot show a "jcl error"?

For anyone here to be able to help, you need to provide details for someone to work with.


Yup.........happens too often people think we can read there minds or look over their shoulders at the terminal or logfile. Too bad......how do we educate these guys?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Oct 19, 2007 12:04 am    Post subject:
Reply with quote

Hi George,

Quote:
how do we educate these guys?
Repetition . . .

What is unfortunate is that the longer it takes to get the details of the problem, the longer it takes the person to get usefull replies from the forum. . .
Back to top
View user's profile Send private message
Shashank Naresh

New User


Joined: 24 Aug 2007
Posts: 5
Location: Mumbai

PostPosted: Fri Oct 19, 2007 1:34 am    Post subject: Please Send JES MESSAGE OF JCL SDSF screen shot
Reply with quote

After getting the screen shot information I will be able to diagnose it!

Regards,
Shashank
Back to top
View user's profile Send private message
mfhelp
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 33

PostPosted: Fri Oct 19, 2007 2:24 pm    Post subject:
Reply with quote

Hi Dick and George

[Neither the link above or the attached screenshot show a "jcl error"? ]

I will explain the question.

The attachment posted by "vgreddych" shows the error that precompiler has thorwn and the errors can be resolved, that is no big deal.

Guys do not expect the phrase "JCL ERROR" in the spool putput of precompilation step.

My question is why user who submits the job gets JCL error notification instead of MAXCC = 12 (for example) from the precompiler.

If IGYCRCTL has to throw some error, does user get notification as JCL Error?....... NO, instead user gets MAXCC = 8 or 12.

Then if DSNHPC (precompiler) has some problem (host varibles not found or something) why is user notified as JCL error though the return code from the precompilation step is (say 4)?

Hope that the overall objective of this discussion is clear this time.[/quote]
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Fri Oct 19, 2007 2:31 pm    Post subject: Reply to: JCL Error from DB2 Precompiler
Reply with quote

Quote:
Then if DSNHPC (precompiler) has some problem (host varibles not found or something) why is user notified as JCL error though the return code from the precompilation step is (say 4)?


As usual replying without seeing is not easy !

if the precompilation issues a return code of 4,
maybe the procedure is badly written and the subsequent steps
do not check properly the RC

but without seeing ........
Back to top
View user's profile Send private message
mfhelp
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 33

PostPosted: Fri Oct 19, 2007 2:55 pm    Post subject:
Reply with quote

yes i think u r write
Back to top
View user's profile Send private message
mfhelp
Warnings : 1

New User


Joined: 29 Jun 2006
Posts: 33

PostPosted: Fri Oct 19, 2007 2:55 pm    Post subject:
Reply with quote

sorry, right
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


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