View previous topic :: View next topic
|
Author |
Message |
Venugopalsubbiah
New User
Joined: 12 Aug 2008 Posts: 7 Location: Bangalore
|
|
|
|
Can somebody explain what are below sectons meant for in cobol identification division....
IDENTIFICATION DIVISION.
PROGRAM-ID. PROGRAM NAME.
AUTHOR.
INSTALLATION.
DATE-WRITTEN.
DATE-COMPILED.
SECURITY.
Just to get the deeper knowledge. I would greatly appreciate any replies on this.... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why not read it Yourself at the source of all the knowledge by clicking on the
IBM Manuals link at top of the page |
|
Back to top |
|
|
Venugopalsubbiah
New User
Joined: 12 Aug 2008 Posts: 7 Location: Bangalore
|
|
|
|
Thanks for your quick reply.
I did that. But still I want to know the exact impact of each when we specify it eventhough we are not considering it in our day to day programming..For example
DATE-COMPILED.
When and where it plays major role? If this is not at all useful practically why do we need to use it?
What might be the exact intention when they initially designed this? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
apart the program-id all the other paragraph are optional,
and IIRC are just checked from a formal point of view
and just considered as comments/documentation |
|
Back to top |
|
|
Venugopalsubbiah
New User
Joined: 12 Aug 2008 Posts: 7 Location: Bangalore
|
|
|
|
Ok. Just for a quick confirmation.
Apart from PROGRAM-ID, we DO NOT have any practical use from remaining sections of ID Div at any circumstances.
Should I assume like that?
just quickly say YES to agree or NO to find out/refer more. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Quote: |
just quickly say YES to agree or NO to find out/refer more.
|
Refer more/Find out and post your findings. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
by using the "DATE-COMPILED." clause, you can use the following code in your PROCEDURE DIVISION
Code: |
MOVE DATE-COMPILED TO DISPLAY-DATE-COMPILED |
I have worked at sites that required a BATCH module to display this information upon invocation. Not really useful when a module is compiled twice in one day, but... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Quote: |
Can somebody explain what are below sectons |
Actully "those below shown" are optional "paragraphs" in Identification Division & not Sections; SECTIONs* has a different meaning in COBOL.
AUTHOR: Name of the author of the program.
INSTALLATION: Name of the company or location.
DATE-WRITTEN : Date the program was written.
DATE-COMPILED : Date the program was compiled.
SECURITY : Level of confidentiality of the program.
The paragraph name DATE-COMPILED and any comment-entry associated with it appear in the output program listing with the current date inserted:e.g.:
Code: |
DATE-COMPILED. 04/27/95. |
*A SECTION in COBOL is created by typing a name, similar to a paragraph name, followed by one or more spaces, followed by the word SECTION and a period. SECTIONs in COBOL can be required or optional, depending on which DIVISION they are in. WORKING-STORAGE SECTION is a reserved name and a required section in the DATA DIVISION if your program uses any variables--and most programs do. |
|
Back to top |
|
|
|