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

Need to know details about the sections in Ident. Div of COB


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Venugopalsubbiah

New User


Joined: 12 Aug 2008
Posts: 7
Location: Bangalore

PostPosted: Mon Aug 25, 2008 12:35 am
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Aug 25, 2008 1:15 am
Reply with quote

why not read it Yourself at the source of all the knowledge by clicking on the
IBM Manuals link at top of the page icon_biggrin.gif
Back to top
View user's profile Send private message
Venugopalsubbiah

New User


Joined: 12 Aug 2008
Posts: 7
Location: Bangalore

PostPosted: Mon Aug 25, 2008 1:22 am
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Aug 25, 2008 1:40 am
Reply with quote

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

New User


Joined: 12 Aug 2008
Posts: 7
Location: Bangalore

PostPosted: Mon Aug 25, 2008 1:44 am
Reply with quote

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

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Aug 25, 2008 12:42 pm
Reply with quote

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 25, 2008 12:51 pm
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Aug 25, 2008 1:21 pm
Reply with quote

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
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts getting subtotals for multiple sections SYNCSORT 4
No new posts JCL SORT to compress the student's de... DFSORT/ICETOOL 7
No new posts Splitting group records based on deta... DFSORT/ICETOOL 8
No new posts Sections: need one appearance of cer... DFSORT/ICETOOL 4
No new posts report on job scheduling details in Zeke IBM Tools 2
Search our Forums:

Back to Top