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

How many program bind in one module....

2387


how do I declare a minor?

925


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

963


What is difference between bind by copy and bind by reference?

2139


do you use message subfiles? What are the necessary keywords required coding a message subfile?

924


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

2109


How to select highest score of each subject or how to select highest income of every month?

1522


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

4781


how do I preserve and clean the array?

876


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

2139


what is the procedure and explain about real time scenario.

1722


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

804


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

1046


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?

855


explain sflclr, sflend, sfldlt, and sflcsrrrn?

1110