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

Tell me if VSCOBOL is 24 bits or 31 bit


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Wed Apr 22, 2009 3:15 am
Reply with quote

Hello,

In our shop we've VSCOBOL. Can some one tell me if VSCOBOL is 24 bits or 31 bits ?

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Apr 22, 2009 3:20 am
Reply with quote

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
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Wed Apr 22, 2009 8:04 am
Reply with quote

It is OS/VS COBOL. Even I am not sure about the rest two questions.
How can I find that ?
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 Apr 22, 2009 8:37 am
Reply with quote

Hello,

Look at the output of a compile and a link. . .
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Wed Apr 22, 2009 8:42 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Apr 22, 2009 9:16 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Apr 22, 2009 4:43 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Apr 22, 2009 7:53 pm
Reply with quote

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 icon_smile.gif

Maybe we'll get some clarification. . .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Apr 22, 2009 8:00 pm
Reply with quote

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 ... icon_smile.gif
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 Apr 22, 2009 8:19 pm
Reply with quote

Only ewe. . . he replied silently. . .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Apr 22, 2009 8:22 pm
Reply with quote

Great ... now I've got to clean my monitor off -- coffee looks so dark on it ... thanks, Dick. icon_biggrin.gif
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 Connect Direct - using DEBUG=TRACE Bits All Other Mainframe Topics 4
No new posts Need a SORT to compare the signed bits JCL & VSAM 3
No new posts Testing more than 8 bits in single in... PL/I & Assembler 3
No new posts How can I read binary bits in cobol? COBOL Programming 6
No new posts Instruction 64 bits - MVCLE PL/I & Assembler 1
Search our Forums:

Back to Top