How can i check the object existance in RPG program without
using QCMDEXC command.
Answer Posted / roshan.wankar
1. To check File object, you should defined file in User
open mode and by using %Open operation we can identify the
file object is present or not.
2. To check Program object,
Use MONITOR; opcode or in calling specify low indicator, if
Low indicator is On, means object is not present in library
list.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is difference between bind by copy and bind by reference?
what is file information data structure?
what do you mean by an input subfile, what are the keywords required?
Explain mdt?
1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.
what are the key words you must use when using a subfile?
are there any useful c runtime apis that I can call from rpg iv?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
How to write record if no field or the field are different in physical file in rpgle ?
How many program bind in one module....
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
what is *place and *auto keyword in prtf ?plz explain
how can I tell when to replace the array?
What is file identifier where we can use?