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

SOME BASIC QUESTIONS AND MESSY DOUBTS


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
beruoist

New User


Joined: 14 Nov 2007
Posts: 70
Location: mumbai

PostPosted: Tue Feb 23, 2010 5:20 pm
Reply with quote

1) I understand what is a GDA,LDA and PDA.But sometimes i had been asked confusing questions.In which all entities they can be defined and used.
Can someone please repeat it.That in Programs,Subprograms,Subroutines(inline- External),Copycodes. Where all we can define them,use them.
Please correct my question if it is wrong.

2) Locking of adabas file and records in case of Read and Find.And how does a Find- get combination let us get better result than read -get.Or this statement is just conditional.
Can someone please elaborate the answer in term of database side activities.

Thats all for now.

Thanks in Advance.
Back to top
View user's profile Send private message
Steve Robinson

New User


Joined: 14 Nov 2009
Posts: 12
Location: U.S.

PostPosted: Tue Feb 23, 2010 7:23 pm
Reply with quote

First question:

Programs can have GDA and LDA; no PDA

Subprograms can have PDA, LDA, and GDA. HOWEVER, a GDA in a subprogram creates a new instance of a GDA. Thus a program cannot share a GDA with a subprogram it CALLNATs.

External subroutines can have all three. Unlike a subprogram, an external subroutine can share a GDA with an object that PERFORMs it.

Internal subroutines do not "have" any GDA, LDA, or PDA. The objects they are in (e.g. programs, subprograms, etc) possess them.

The same is true for Copycode.

Second question:

FIND-GET versus READ-GET makes no sense as far as a performance comparison (which I presume is what you mean by "better result". FIND versus READ (w/wo updates/gets) is a lengthy topic. It involves MultiFetch, TO versus ENDING AT, number of records that satisfy a criteria, etc.

steve
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Compiler and run JCL for basic PL/I p... PL/I & Assembler 10
No new posts Comp interview questions Mainframe Interview Questions 5
No new posts Interview Questions on Cobol DB2 program Mainframe Interview Questions 5
No new posts Mainframe Interview Questions CICS,CO... Mainframe Interview Questions 6
No new posts Viewing executing process in NDM .. q... IBM Tools 0
Search our Forums:

Back to Top