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
 

 

COBOL compilation error RC=12
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 6:02 pm    Post subject: COBOL compilation error RC=12
Reply with quote

I am trying to compile A COBOL program.
and getting RC=12, but i see 4 under INFORMATIONAL but still RC=12.
kindly help me on this
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Fri Dec 09, 2011 6:08 pm    Post subject: Reply to: COBOL compilation error
Reply with quote

Kindly copy/paste, don't attach screen prints.

Did you try fixing the error you have? At least show all of it here.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Fri Dec 09, 2011 6:28 pm    Post subject: Reply to: COBOL compilation error
Reply with quote

Have a look at this topic.

That first little message (the 185-I) will probably lead you to the "source" of your problem. Fix the other one as well, but not connected to this problem.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Dec 09, 2011 6:31 pm    Post subject:
Reply with quote

Did you verify from Appendix E of the COBOL Language Reference manual (available at the Manuals link at the top of this page) that you are not using a reserved word for a variable name? Did you check with your site support group to see if they added anything to the reserved word table at your site?
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Fri Dec 09, 2011 6:32 pm    Post subject:
Reply with quote

Are you sure your RC=12 is not from link edit?
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 6:34 pm    Post subject:
Reply with quote

Yes I am very sure about the RC is 12. and i m clueless for that. If i have only 4 information how RC can be 12 ???
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Fri Dec 09, 2011 6:37 pm    Post subject:
Reply with quote

vinod kumar prasad wrote:
Yes I am very sure about the RC is 12. and i m clueless for that. If i have only 4 information how RC can be 12 ???


Did you read anything I posted?
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Fri Dec 09, 2011 6:38 pm    Post subject:
Reply with quote

Quote:
Yes I am very sure about the RC is 12


But are you sure it is from the compile step? Prove it.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Dec 09, 2011 6:39 pm    Post subject:
Reply with quote

4 is the number of informational messages, and NOT a return code.


reading comprehension is an art.
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 6:41 pm    Post subject:
Reply with quote

Below is what i got as information with RC as 12



IGYSC0185-I Messages were issued during library phase processing. Refer to the begining of the listing.

231 IGYDS0086-I "RECORD-NAME" was specified as an informational word in the current reserved word table . The reserved word table used may be different from the IBM-supplied default.Language Reference for information on reserved words.

Same message on line: 233 1532
Messages Total Informational Warning Error Severe Terminating
Printed: 4 4
* Statistics for COBOL program FSRXIF3E:
* Source records = 1535
* Data Division statements = 671
* Procedure Division statements = 202
End of compilation 1, program FSRXIF3E, highest severity 0.
Return code 12
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 6:45 pm    Post subject:
Reply with quote

[
IGYSC0185-I Messages were issued during library phase processing. Refer to the beginning of the listing


231 IGYDS0086-I "RECORD-NAME" was specified as an informational word in the current reserved word table.The reserved word table used may be different from the IBM-supplied default .Refer to VS COBOL II Application Programming. Language Reference for information on reserved words

Same message on line: 233 1532
-Messages Total Informational Warning Error Severe Terminating
0Printed: 4 4
-* Statistics for COBOL program FSRXIF3E:
* Source records = 1535
* Data Division statements = 671
* Procedure Division statements = 202
0End of compilation 1, program FSRXIF3E, highest severity 0.
0Return code 12
][/code]
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Fri Dec 09, 2011 6:48 pm    Post subject:
Reply with quote

vinod kumar prasad wrote:

IGYSC0185-I Messages were issued during library phase processing. Refer to the beginning of the listing


Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Dec 09, 2011 6:49 pm    Post subject:
Reply with quote

Quote:
IGYSC0185-I Messages were issued during library phase processing. Refer to the begining of the listing.
This is telling you to look at your COPY statements for a problem -- either with the COPY statement itself, or with the code being copied into your program.

If you want assistance, you're going to have to post CODE, not just output messages.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Fri Dec 09, 2011 6:51 pm    Post subject: Reply to: COBOL compilation error
Reply with quote

"Highest severity" and "Return Code" on the compile listing usually have a pretty clear relationship.

With severity 0, you'd expect Return Code 0.

Looks like Library Phase messes that up, in that it does not get to influence the severity.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Fri Dec 09, 2011 6:55 pm    Post subject: Reply to: COBOL compilation error
Reply with quote

You should be able to find for IGYLI message(s).

If you had googled for the message you could see, you'd have come to the topic I highlighted for you and not have had to bother asking the question.
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 7:01 pm    Post subject:
Reply with quote

I have googled it too but didnt get anything to help myself. Still its fishy how RC can be 12 is i got only 4 informations.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Dec 09, 2011 7:02 pm    Post subject:
Reply with quote

36_2_18.gif

Frisbee asked you for prove if the rc=12 comes from the compile or from something else. You are repeating yourself over and over with stupidity.
Give us the jobstream, all the sysout etc. etc.

Beside that its friday afternoon, and here happy hours are starting and i want to attend all of them. So good luck.
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 7:06 pm    Post subject:
Reply with quote

COPY IDMS SUBSCHEMA-CONTROL
Above is the copy statement which is using Variable "RECORD-NAME".
Help me how to change the copy variables ...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Dec 09, 2011 7:08 pm    Post subject:
Reply with quote

Quote:
how RC can be 12 is i got only 4 informations.
Because the 12 is from the IDMS precompile results while the COBOL compile gives you a 4?
Back to top
View user's profile Send private message
vinod kumar prasad

New User


Joined: 18 May 2011
Posts: 8
Location: India

PostPosted: Fri Dec 09, 2011 7:12 pm    Post subject:
Reply with quote

Is there anyway i can do any modification to get RC=0 ??
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
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
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


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