When will you use OPEN and CLOSE opcodes in RPG program?

Answer Posted / siddharth kumar

If you specify the letter "U" at columns 73 - 74 in a file description specification indicating that user control on a file. Hence we have to explicitly open and close the file in a program.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is there any way to dynamically merge other html scripts into a given html?

600


What is binder language ?

1361


what is arrival sequence?

1109


what is a logical file?

1039


i am using non join multiple format my 3 database file is like that pf97 R REC ENAME ETENNO ESTATUS K ENAME pf98 R REC1 ENAME ESAL K ENAME PF99 R REC3 ENAME CRDCARD EID K EID & MY NON JOIN LOGICAL FILE IS ALSO SAME EXCEPT RECORD NAMES BEFORE I TRIED WITH 2 FILES SO ITS SAYS ERROR I.E.(Key field attributes must be same as for previous formats. ) SO I CHANGED KEYFIELD ACCORDING TO PF SO ITS WORKING BUT AFTER ADDING 3 FILES ITS SAYING SAME ERROR . I DONT KNOW I NEW IN AS400 PLLZ HELP ME I HAVE ONE MORE QUE. CANT BE USE DIFFERENT KEYFIELD (NOT ACCORDING TO PF) IN NON JOIN LOGICAL FILE.

1035






How to reverse a string using RPG?

689


in conjunction with what other keyword must ovrdta and ovrata be used?

910


what are the different types of data areas?

982


what are various techniques to pass parameters from one program to another?

1039


what is the purpose of overrides?

1019


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

563


How do I remove a flag or check no. or name when a user opens too many sessions?

1773


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1142


how do you read changed records backward in subfile?

615


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

608