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

JCL Error from DB2 Precompiler


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10833
Location: italy

PostPosted: Wed Oct 17, 2007 7:23 pm
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
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
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:
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

Moderator Emeritus


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

PostPosted: Thu Oct 18, 2007 9:35 pm
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: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu Oct 18, 2007 11:58 pm
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

Moderator Emeritus


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

PostPosted: Fri Oct 19, 2007 12:04 am
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10833
Location: italy

PostPosted: Fri Oct 19, 2007 2:31 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts dsnrexx fails without error message CLIST & REXX 9
No new posts writing into VSAM indexed tabl in PL1... PL/I & Assembler 8
No new posts SORT ERROR PARAMETER VALUE EXCEEDS M... DFSORT/ICETOOL 12
No new posts JCL error Misplaced DD name JCL & VSAM 12
No new posts Rexx issue error Ispf105 TSO/ISPF 27
Search our Forums:

Back to Top