Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Need to know details about the sections in Ident. Div of COB
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Mon Aug 25, 2008 1:15 am    Post subject: Reply to: Need to know details about the sections in Ident.
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Mon Aug 25, 2008 1:40 am    Post subject: Reply to: Need to know details about the sections in Ident.
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Mon Aug 25, 2008 12:42 pm    Post subject: Reply to: Need to know details about the sections in Ident.
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    Post subject:
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

Senior Member


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

PostPosted: Mon Aug 25, 2008 1:21 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts Connect Direct details shankarm IBM Tools 2 Sat Feb 20, 2016 7:25 pm
No new posts Sticky: Details on food and accommodations fo... mcmillan Site Announcements 4 Thu Dec 03, 2015 11:02 pm
No new posts Getting job details that ran in a par... Lingam D CLIST & REXX 11 Mon Jan 20, 2014 6:51 pm
No new posts Error in fetching the details from PANEL Ramsee TSO/ISPF 11 Mon Nov 18, 2013 1:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us