View previous topic :: View next topic
|
Author |
Message |
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Hello,
In our shop we've VSCOBOL. Can some one tell me if VSCOBOL is 24 bits or 31 bits ?
Thanks |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
OS/VS COBOL or VS COBOL II? What are the compiler options set to? What are the linkage edit (binder) options set to? |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
It is OS/VS COBOL. Even I am not sure about the rest two questions.
How can I find that ? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Look at the output of a compile and a link. . . |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
hello,
I am seeing the following in my complie job
Code: |
22:21:13 ***** R0MMCMP1 compile for System T VSCOBL @@ GCPGM S N *****
22:21:14 End of VS COBOL compile. Rc = 4 |
where GCPGM is the Program name.
Please advise.
Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Look at the first part of the compile - it should show which options are in effect.
You also need to look for the options in use in the output of the link edit.
My connection tonight is not to a mainframe, so i can't generate something and post it. Even if i could, it would most likely be different as the compilers i use are all versions of Enterprise COBOL rather than vscobol.
If you cannot locate the info to post, someone in system support on your system should be able to show you in your compile output. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Actually, the full answer to your question is that a compiler (such as OS/VS COBOL) may be either 24- nor 31-bit but more to the point it's not relevant. Programs compiled under the compiler can be 24-bit or 31-bit but the actual compiler -- who knows, who cares? As long as it runs and generates output programs there's no reason to worry about the addressing mode of the compiler.
The compiler options will tell whether or not the program was compiled to be 24- or 31-bit addressable. The linkage editor (binder) options will tell you whether or not the program's load module was generated to support 31-bit addressing or not. AMBLIST can be run on the load module to tell this as well. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Robert,
In playing "guess the requirement", i guessed that the question was about the "output" of the compile and the link rather than the actual mode of the compiler
Maybe we'll get some clarification. . . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Dick -- there seems to be a whole lot of "guess the requirement" today; OS/VS COBOL and VSAM KSDS being just two of them.
Ah, clarification ... that would be so nice ... probably would go quite well with fava beans and a nice Chianti ... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Only ewe. . . he replied silently. . . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Great ... now I've got to clean my monitor off -- coffee looks so dark on it ... thanks, Dick. |
|
Back to top |
|
|
|