View previous topic :: View next topic
|
Author |
Message |
vinod kumar prasad
New User
Joined: 18 May 2011 Posts: 8 Location: India
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1050 Location: Richmond, Virginia
|
|
|
|
Are you sure your RC=12 is not from link edit? |
|
Back to top |
|
|
vinod kumar prasad
New User
Joined: 18 May 2011 Posts: 8 Location: India
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1050 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
4 is the number of informational messages, and NOT a return code.
reading comprehension is an art. |
|
Back to top |
|
|
vinod kumar prasad
New User
Joined: 18 May 2011 Posts: 8 Location: India
|
|
|
|
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 |
|
|
vinod kumar prasad
New User
Joined: 18 May 2011 Posts: 8 Location: India
|
|
|
|
[
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
vinod kumar prasad wrote: |
IGYSC0185-I Messages were issued during library phase processing. Refer to the beginning of the listing
|
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
"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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
vinod kumar prasad
New User
Joined: 18 May 2011 Posts: 8 Location: India
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
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 |
|
|
vinod kumar prasad
New User
Joined: 18 May 2011 Posts: 8 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
vinod kumar prasad
New User
Joined: 18 May 2011 Posts: 8 Location: India
|
|
|
|
Is there anyway i can do any modification to get RC=0 ?? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Yes, but YOU will have to find and make the change since you are not posting anything source related. If IDMS is involved, you may need to get the DBA involved to help figure out the actual problem and how to fix it. |
|
Back to top |
|
|
vinod kumar prasad
New User
Joined: 18 May 2011 Posts: 8 Location: India
|
|
|
|
sorry but as all my codes are classified can't post it here.
Anyways i'll try to get the hepl of DBA on the same.
Thanks for all your expert advices. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
what classification do your codes have? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Dick, I'm thinking maybe TS/SCI with a NOFORN designation? |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
At our shop, our spool handling program can have a filter added to it. This filter can be told to select only certain lines from the output of a job. Our shop set up the list of messages to be shown about a decade ago.
People still use it, and it causes exactly this kind of confusion.
There are probably a raft of messages from the link-edit step that are not matching the filter the TS is using. So they type "SS" in the little command area and see what they posted abouve, never guessing there are 500 other lines of information that would help them.
I suggest looking to make sure there isn't another command to use that does not filter out any lines. |
|
Back to top |
|
|
|