MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cobol compiler option into a load-module

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
jmp2i
Beginner


Joined: 01 Oct 2003
Posts: 1
Topics: 1
Location: france ( le chesnay )

PostPosted: Wed Oct 01, 2003 5:01 pm    Post subject: cobol compiler option into a load-module Reply with quote

hello
do you know how to retrieve the cobol compiler options into a load module
where the options are stored
and where a dsect describing it

1 for OS/VS cobol
2 for COB II 1.1 , 1.2 and 1.4
thank you
Embarassed
_________________
jmp2i
Back to top
View user's profile Send private message Send e-mail
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Thu Oct 02, 2003 12:10 am    Post subject: Reply with quote

Hi jmp2i,

I'm having trouble understanding what you're looking for.

You say:
Quote:

into a load module

Do you mean "from a load module"?

You say:
Quote:

where a dsect describing it

I don't know what that means.

To get the discussion started, let me take a guess and you can let me know if this is what you're looking for.

The compiler options selected for a COBOL pgm are contained within its first 100 bytes (approx). They are represented by a series of bits, each denoting a selected option. Among other data contained therein are the compiler name and version.

I'm not sure but I'd guess that the sequence and meaning of the option bit can change from compiler to compiler and from version to version. Their values can usually be found in the associated Pgmr's Guide. With COBOLII they were in the Debugging Guide.

You don't say how you want to use this info. Do you want to access and display this info from a utility for one pgm at a time or do it for a list of pgms? Do you want to look at the bits through ISPF edit for an individual module? Do you want to run this process in a production environment?

Each of these choices present different problems and might dictate the choice of an approach.

Regards, Jack.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Oct 02, 2003 5:09 am    Post subject: Reply with quote

jmp2i,

It is not an easy task to retrieve the cobol compiler options from a load module.The options can be found by manual bit-by-bit translation of the SIGNATURE bytes which are in the load module.

Check this link for detailed description of signature bytes.

Signature information bytes: compiler options

Signature information bytes: DATA DIVISION

Signature information bytes: ENVIRONMENT DIVISION

Signature information bytes: more PROCEDURE DIVISION items


I have a program from cbttape which I can mail you if you are interested.


On second thougths can't you just compile the programs once again and look at the sysout?

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group