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
 

 

Entry Statement in IMS DB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
sudip

New User


Joined: 10 Mar 2006
Posts: 2

PostPosted: Mon May 07, 2007 3:20 pm    Post subject: Entry Statement in IMS DB
Reply with quote

Hi,
i have a doubt please help me in it. The ENTRY (ENTRY 'DLITCBL' using PCB-MASK) statement provides a mechanism for DL/I to transfer control to the application program. Some programs do not have this statement instead there is directly PROCEDURE DIVISION USING PCB-MASK. What is the difference between these two? please help

Thanks
Sudip
Back to top
View user's profile Send private message

itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Mon May 07, 2007 5:29 pm    Post subject:
Reply with quote

Hi Sudip,

programs using older versions of IMS had separate entry statements.From IMS version7(not sure about the version number) onwards this is changed and no specific entry statement is required. But to maintain the compatibility with older programs it supports both. Hope this answers your question.

Regards,
Sreejith
Back to top
View user's profile Send private message
sudip

New User


Joined: 10 Mar 2006
Posts: 2

PostPosted: Mon May 07, 2007 5:40 pm    Post subject: Re: Entry Statement in IMS DB
Reply with quote

Thanks Sreejith this perfectly answers my question but can you provide me the source of the information so that i can verify the Version number too.

Thanks
Sudip
Back to top
View user's profile Send private message
kesavarao

New User


Joined: 16 Apr 2006
Posts: 2

PostPosted: Thu Jul 30, 2009 11:38 am    Post subject:
Reply with quote

IMS Program may call another IMS program.

Main ims program will have entry statement and subprogram will not have entry statement.

main program looks like below :-
------------------------------------
Linkage section.
pcb-mask

procedure division.
entry 'dlitcbl' pcb-mask

call 'subprogram' pcb-mask

goback.

subprogram looks like below :-
---------------------------------
Linage section
pacb-mask -----> (received from main program)

procedure division pcb-mask
-----> Here you don't find entry statement

Regards
Devoji Kesavarao
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Tue Aug 04, 2009 6:11 pm    Post subject:
Reply with quote

When you see PROCEDURE DIVISION USING......it indicates that your program is not talking DIRECTLY to IMS - it is a sub task. Some installations had all of their IMS programs running as a subtask. They had a "main" module that talked to IMS.

GREAT example kesavarao!
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 -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Automation of data entry using Rexx i... zingy.rajeev CLIST & REXX 4 Mon Aug 22, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Automation of data entry using Rexx i... zingy.rajeev CICS 0 Mon Aug 22, 2016 4:11 pm
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm


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