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
 

 

Importance of IDMS FINSIH

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO
View previous topic :: :: View next topic  
Author Message
seahawk789

New User


Joined: 22 Feb 2010
Posts: 47
Location: Cochin

PostPosted: Sat Mar 29, 2014 1:18 am    Post subject: Importance of IDMS FINSIH
Reply with quote

I have a clarification on the FINISH statement.
I understand that FINISH statement is generally used to end a run unit by releasing database resources and to prevent potential time-outs. My query is even if the program does not specify a FINISH explicitly in the code, when the COBOL program completes successfully, does the run-unit terminate and the resources gets freed up by default even if there is no FINISH ?

Is it similar to the case as in files ? I mean something like we do not specify a CLOSE statement of a FILE towards end of a COBOL program. But when program completes the file is automatically closed.
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1624
Location: NY,USA

PostPosted: Sat Mar 29, 2014 3:22 am    Post subject:
Reply with quote

Code:
DML207

FINISH Not Issued

Reason:

The FINISH statement either has not been coded or has been coded incorrectly. Check the FINISH statement for proper syntax. Note that programming logic for subprograms or for non-IDMS programs may generate this warning automatically; in this case, corrective action is unnecessary.

Severity:

W


A "FINISH" should always be issued before terminating a program. Issue the FINISH as soon as database I/O is completed to free-up resources and to prevent potential time-outs

Also if you are using RETURN-CODE in your program then the value in it would get overriden by FINISH.

All in All it is recomended not to miss FINISH for thr RUN-UNIT to get it ended otherwise get ready for surprises.


Yes file will be closed at then end.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1624
Location: NY,USA

PostPosted: Sat Mar 29, 2014 4:36 am    Post subject:
Reply with quote

I was just happened to review,

https://support.ca.com/cadocs/0/CA%20IDMS%2018%205%20User%20Bookshelf-ENU/Bookshelf_Files/PDF/IDMS_Navigational_DML_ENU.pdf

And found that with and without a FINISH would results into different results and that varies per scenario. For e.x. Area Lock ( Local Mode) the locks remian set unless it finds FINISH. FINISH would also update all statistical information as needed for every DB operation

So you might have to read this completely for importance of FINISH and then I am sure you would get answer to all your doubts.
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 -> IDMS/ADSO All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDMS/DC-COBOL program - SNAP error wh... rakeshsekar1987 IDMS/ADSO 5 Tue Sep 13, 2016 8:28 pm
No new posts ADS 3270 Batch simulator for IDMS rel... gpowell382 IDMS/ADSO 1 Thu May 05, 2016 8:02 pm
No new posts ALTER of an IDMS AREA with NEW/OLD pa... Awanti IDMS/ADSO 2 Mon Mar 14, 2016 10:01 pm
This topic is locked: you cannot edit posts or make replies. Sticky: CA IDMS v18.5 Manuals Pandora-Box IDMS/ADSO 0 Sun Dec 13, 2015 5:37 pm
No new posts Need documents or links to understand... sherlinpraveenkumar IDMS/ADSO 5 Wed Oct 28, 2015 4:40 pm


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