Apart from opening of a file do we have any other use of USROPN?



Apart from opening of a file do we have any other use of USROPN?..

Answer / Sanjay Singh Negi

USROPN is primarily used in RPG to open files for processing. However, it can also be used with the *ALWMISS option to allow missing files without an error.nnFor example:nn Open MyFile Using MyCursor (n Inz (*Inq) n Ctl-Options(*AlwMiss) n )nnThis will allow your program to continue even if the file does not exist, rather than generating an error.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is a primary file?

2 Answers   IBM,


what is a keyed physical file?

2 Answers   IBM,


what is meant by object lock requests,held locks and locks waiting to be applied(wrkobjlck) why should we apply for locks.Please explain sir.

3 Answers   IBM,


How many primary files allowed in a program?

1 Answers  


how many files, printer files you can describe in a rpg?

1 Answers   IBM,


how can you detect overflow for a print program that prints multiple lines per cycle?

2 Answers   IBM,


How do you check object lock

1 Answers  


what is the use of CPYFRMQRYF?

4 Answers  


1.What is the difference between regular join logical file and non join logical file? 2.what are the nessasary keywords for non join logical file

3 Answers   ANZ,


maximum number of subfiles that can defined in a rpg program for one display file is?

2 Answers   IBM,


when you are defining a flat file in your program in f specs which format will you specify?

1 Answers   IBM,


what is the use of sflend keyword?

2 Answers   IBM,


Categories