1. How can I create a LF using crtlf command based on a
particular member in a multimember PF? Where I have to
specify the member name?

2. How to differentiate between the types of join from a
Join logical file DDS. Is it possible to have different
types of Join Logical files?

3.Any performance difference between Opnqrf and Embedded
SQL? When I
should prefer Opnqryf and when SQL?

4.
I know access path is the path chosen by the program to
retrieve data.
It can be of keyed access path or arrival sequence.
*IMMED- *IMMED description says access path is updated each time
record is added or deleted from a member. - What is updating
here?
*REBLD - The access path is completely rebuilt each time a file
member is opened. The access path is maintained until the
member is
closed, then the access path is deleted. - I am not able to
understand this completely.

Could anyone explain these more clearly?

5.What is the purpose of using activation group. I know it
is a resource allocator, but other than this any other
benefits of using an activation group?

Answer Posted / harsha sen

2.Yes ,it is possible to know the type of join by DDS.
If we are joining two files,with JREF(primary file) thn it will Inner join.

If we have specified JDFTVAL ,then it will become left outer join.Because all records from primary file will be selected and only matching records from secondary file will be selected.

if we are joining same file ,like,JFILE (PF01 PF01) ,this is a self join.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the batch job?

572


In a CL Program after executing a SQL SP how to receive a Output value from the SP. Just to make it clear I am sending 2 input and 1 output parameter to the SQL Stored Procedure. Now while receiving it output parm it is failing.

2130


What is open data path?

581


How to know the particular record in pf with out reading?

590


Can we concatenate fields in physical file? If yes how can we do?

588






What is the interactive job? What is the batch job? How to change the batch job to interactive job?

628


What is the difference between access path and open data path?

596


What is the use of member in pf?

539


There is one string as A B C and wanted to display string as Shri A Shri B Shri C, how we can do this in sql? If we have around 100 values in string like this, each value should be displayed with initials as Shri.

730


How to update physical file using logical file with example?

582


Where the QTEMP library will get created? if the the answer is QSYS, then howcome more than one job can create same library name(QTEMP) in QSYS? what is the uniqueness of QTEMP? For example, run the below command in different workstation WRKOBJ QSYS/QTEMP And take 8 in the option to check the description. both will have different info. so where(which LIB) exactly the QTEMP is stored?

7448


Suppose I have a pf,it contains 5 members,how to access particular member data from logical file ?and what is the use of member in pf?

636


How to find the list of source physical files in a library?

622


What is the primary file?

586


I have a pf, it contains 5 members, how to access particular member data from logical file?

529