|
|
| 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 |
|
 |
References
|
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 3064 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
Global Moderator
Joined: 14 Mar 2007 Posts: 3064 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 |
|
 |
Moved: Mon Aug 25, 2008 2:48 am by dick scherrer From Mainframe COBOL to Interview Questions |
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1130 Location: Mumbai - 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
Senior Member
Joined: 20 Oct 2006 Posts: 1618 Location: germany
|
|
|
|
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 D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2143 Location: Phoenix, AZ
|
|
|
|
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 |
|
 |
|
|