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
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
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
what is a rpg?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
How to declare the pull button in AS/400..
how do I declare a minor?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
explain sflclr, sflend, sfldlt, and sflcsrrrn?
When it is desirable to describe files Internally?
1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?
what do you mean by an input subfile, what are the keywords required?
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.
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?