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

Compilers problem having with EVALUATE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pankaj Gupta
Currently Banned

New User


Joined: 07 May 2008
Posts: 50
Location: Bangalore

PostPosted: Wed May 28, 2008 7:11 pm
Reply with quote

I am writing cobol programs which it is not compiling. It is a problem with the statement EVALUATE. So I am told that here we are using something called OSVS cobols which does not recognise EVALUATE. But I think the compiler is made compatible backwards so that it will always be compiling the newest cobol languages so there must be some other problem why it will not recognise EVALUATE.

Thank you for your help.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


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

PostPosted: Wed May 28, 2008 7:14 pm
Reply with quote

Show us the COBOL code and the error messages.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed May 28, 2008 7:16 pm
Reply with quote

without attending to your comment about backwards compatibility, which made no sense:


what error are you receiving on your compile listing?
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: Wed May 28, 2008 11:27 pm
Reply with quote

Hello,

Quote:
so there must be some other problem why it will not recognise EVALUATE.
We're still waiting for your code and error messages. . .
Back to top
View user's profile Send private message
Pankaj Gupta
Currently Banned

New User


Joined: 07 May 2008
Posts: 50
Location: Bangalore

PostPosted: Thu May 29, 2008 1:37 pm
Reply with quote

I have attaching my code and the compiling problems:
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu May 29, 2008 1:48 pm
Reply with quote

Pankaj Gupta,

I apologize. I thought that I was the only one working at shops with antique op-systems.

you are stuck. you need to use a nested if (or a GOTO ON - sorry, that was intended as a joke.)
Back to top
View user's profile Send private message
Pankaj Gupta
Currently Banned

New User


Joined: 07 May 2008
Posts: 50
Location: Bangalore

PostPosted: Fri May 30, 2008 3:47 am
Reply with quote

Thank you very much sir, but why am I having to use a nested if and not an evaluate? Evaluate is in the fine manual and I think I have coded it correctly.

Thank you again.
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 May 30, 2008 4:08 am
Reply with quote

Hello,

Please post the info from the top of the compile - it will show the version of the compiler you are using.

It is possible that you have a manual that is more current than the compiler that is actually on your system. It might also be that the compiler on your system is missing some updates. Is ther any chance that your jcl is using an obsolete compile proc/jcl - if an old compiler was still on the system, but not to be used any more, it might still be executable and could cause your problem.

Are you you using "your own" compile jcl or is your compile job generated for you?

I'd suggest you talk with others on your project and/or the people who support the compiler and make sure you are using the correct libraries, names, parms, etc.

When you post data, code, jcl, etc, please use the "Code" tag and not attach a screen shot. The screen shot wastes a lot of space and is much harder to read. You can copy/paste from your screen to the Reply Panel.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri May 30, 2008 4:11 am
Reply with quote

Pankaj Gupta wrote:
but why am I having to use a nested if and not an evaluate? Evaluate is in the fine manual and I think I have coded it correctly.
Highlight, copy and paste the top two (head) lines of your compiler listing
Backward compatable does not mean new features will work with old compilers, but the old code will work with new compilers.......
Back to top
View user's profile Send private message
Pankaj Gupta
Currently Banned

New User


Joined: 07 May 2008
Posts: 50
Location: Bangalore

PostPosted: Fri May 30, 2008 1:21 pm
Reply with quote

Now I am told we must not be using the EVALUATES. I do not know why this is being but we must not be using. I think it would be better to fix the problem but this must be for systems programmers not the cobols programmers.

So thank you for all your helpful.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri May 30, 2008 5:55 pm
Reply with quote

Oh well, I wonder what compiler he was using?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri May 30, 2008 6:23 pm
Reply with quote

A compiler that has options that disallow certain verbs from being used by lowly application programmers? icon_rolleyes.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri May 30, 2008 6:35 pm
Reply with quote

Quote:
Oh well, I wonder what compiler he was using?

And how many such "arrangements" he is going to make, there had been enough enhancements in the COBOL functions, how many of them his system programmer are going to deny.
Back to top
View user's profile Send private message
Pankaj Gupta
Currently Banned

New User


Joined: 07 May 2008
Posts: 50
Location: Bangalore

PostPosted: Sat Jun 07, 2008 2:15 am
Reply with quote

This question still is troubling to me but I am thinking I have a fine plan to solve what it is happening.
If I can be xpediting the compiler while it is compiling my program then I will be seeing at what point it is when the compiler does not liking my EVALUATE statement. This is being a dark shot but I am thinking it will work if I can locate where is a compile listing for the compiling program.
If someone would be kind to please elaborate on where exactly which system library the listings are being then I can solve this strange mystery for all and once.
Thank you all very much.
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Sat Jun 07, 2008 3:27 am
Reply with quote

The error messages you already showed us are from the compile listing (like IKF1227I-I), this comes out of the SYSPRINT DD of the compile step. We just need to see the first few lines of that listing. For example my compile listing starts with:
Code:
PP 5655-G53 IBM Enterprise COBOL for z/OS  3.3.1
What does yours say? This would let us know what compiler you are using and we could see if that compiler can use the command you would like to use.
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: Sat Jun 07, 2008 3:32 am
Reply with quote

Hello,

If my memory is still active, i believe the IKF messages are from the old COBOL II compiler.
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
Search our Forums:

Back to Top