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


Please Help Members By Posting Answers For Below Questions

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

831


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1561


what is a rpg?

701


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?

616


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

714






How to declare the pull button in AS/400..

1879


how do I declare a minor?

716


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...

1310


explain sflclr, sflend, sfldlt, and sflcsrrrn?

889


When it is desirable to describe files Internally?

1186


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2373


what do you mean by an input subfile, what are the keywords required?

773


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.

2196


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...?

1462


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?

1455