Saturday, 27 August 2011

AS-400 Interview Questions and Answers: Part IV

What the purpose of the keywords FIFO, LIFO, FCFO?
Ans:
These keywords are used at file level. The purpose of each one is described below:
FIFO: The duplicate key records will retrieved in first in first out order.
LIFO: The duplicate key records will retrieved in last in first out order.
FCFO: The duplicate key records will retrieved in first changed first out order.

What is the difference between regular logical file and join logical file?
Ans:
Regular logical file contains more than one record format.
Record format name in regular logical file should be same based on the physical file.
Join logical file contains only one record format.
Record format name in join logical file should be different.
Through logical file we can made changes in physical file.
Through join logical file we can't made changes in physical file.

Distinguish between logical file and physical file?
Ans:
Physical file contains only one record format.
Logical file contains more than one record format.
Physical file contains actual data.
Logical file doesn't contains data but it provides view from the physical file.


What is field reference file?
Ans:
Field reference file is a file, which contains field definitions and descriptions, and it doesn't have member. Physical contains data derived by the field reference file.

What is the difference between access path and Dynamic select?
Ans:
Dynamic select occurs whenever the program reads file. But access path occurs before the file is read (but not necessarily). Because access path maintenance performed on the file.

Why would you prefer OPNQRYF than logical file?
Ans:
The main difference is : Logical file creates permanent object on the system. OPNQRYF creates temporary access path.

What is the necessary keyword used in a physical file to refer field definitions from the field reference file?
Ans:
REF which is a file level keyword is necessary to define at file level in a physical file. The syntax is as follows: REF(library name/name of the field reference file)

What is purpose of declarative statement DEFN?
Ans:
Depends on the factor 1 value it will do two things:
* If the factor1is *LIKE then DEFN opcode defines the new field based on the attributes old field. * If the factor 1 is *NAMVAR then DEFN opcodes defines the field as a data area.

What is the purpose of SFLNXTCHG keyword in a subfile?
Ans:
Which is a subfile record format keyword. If you perform read on the subfile, the
internal indicator MDT (modified data tag) is automatically set off by the system. If you again perform read on the
same records, records won't be read. Because internal indicator MDT would be off. Hence you should be explicitly set
on the MDT by SFLNXTCHG keyword.

What is the difference between Array and Table?
Ans:

Array: Array is stored any where in the body of the input records.
Table: Table is stored at the begining of the input records.
Array: We can access all the elements in array by specifying the array name.
Table: Only one table element can be accessed at a time.
Array: Array can be searched randomly.
Table: Table can be searched consecutively.

What are the different types of access paths maintained on the file?
Ans:

Immediate: All the access paths (open and close) associated with a file will be updated whenever changes made to a file.
Rebuild- only open access paths will update whenever changes made to the file. Rebuild takes place whenever remaining access paths will be open.
Delay : Rebuild will not takes place.

What is the purpose of reorganizing the physical file i. e. , RGZPFM?
Ans:
Even if you delete the records in a physical file through the program, still the space used by the deleted records not used by the other purpose. Hence using RGZPFM command we can compress the deleted records space.

What is the purpose of CHGPF (Change physical file) command?
Ans:
CHGPF command is used to change the attributes of a physical file. Attributes like
* Maximum number of members
* Member size
* Level check enforced
* Open data path is shared

How can you identify End of file in CLP program?
Ans:
With the help of MONMSG MSGID(CPF0864) we can identify end of file in clp program.

What is the difference between production library and test library ?
Ans:
In debug mode, the files exists in production library not allowed to update.
In the other hand, the files exists in test library allowed to update.


Source: aired.in

35 comments:

  1. Watch Latest news on express news. And updates and hot news on ary news live.

    ReplyDelete
  2. I think this is an informative post and it is very useful

    and knowledgeable. therefore, I would like to thank you

    for the efforts you have made in writing this article.

    New Year Wishes 2017
    Happy New Year 2017 Wishes
    New Year Wishes for Friends 2017

    ReplyDelete

  3. kiss day hd images On the event of huge day people do many things and try many ideas but they become fail in impress their lover so here we will give you a very important things by which you can impress your lover.

    ReplyDelete

  4. Watch online Cricket Matches Live Streaming and the cricket news for future matches and schedule

    ReplyDelete
  5. Free Music Download Mp3 juices is among the top ten leading and most popular mp3 music website in the world, which includes downloading of mp3 music for free.
    https://www.makeoverarena.com/mp3goo-mp3goo-com-free-music-download/

    ReplyDelete
  6. i think your blog is good latest trend you can check my blog also at .11veterans

    ReplyDelete
  7. find the latest tips and tricks about thai lottery. This will be helps you alot.

    ReplyDelete
  8. wirecast-pro-crackLinkThis article is so innovative and well constructed I got lot of information from this post. Keep writing related to the topics on your site.

    ReplyDelete
  9. dfx-audio-enhancer-crackThanks for this post, I really found this very helpful. And blog about best time to post on cuber law is very useful.

    ReplyDelete
  10. Thanks for the post. Very interesting post. This is my first-time visit here. I found so many interesting stuff in your blog. Keep posting. photopia director crack

    ReplyDelete
  11. I really enjoy reading your post about this Posting. This sort of clever work and coverage! Keep up the wonderful works guys, thanks for sharing. Link

    ReplyDelete
  12. v-ray-sketchup-crack
    can be just actually a 3 d images plug with quite a few powerful graphic-producing attributes. Besides, this may be employed for creating 3D computer images that were realistic and perfect.new crack

    ReplyDelete
  13. Its a Very Great and Amazing Blog Dear This is Very Great and Helpful..
    Talha PC
    Crackedithere
    easy cut studio crack
    fineprint crack

    ReplyDelete
  14. I am very thankful for the effort put on by you, to help us, Thank you so much for the post it is very helpful, keep posting such type of Article.
    Macrium Reflect Crack
    Spore Full Version
    DLL Files Fixer Crack

    ReplyDelete