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

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

675


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

698


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

818


how can you display specific subfile page on the screen in unequal subfile?

664


how do I preserve and clean the array?

658






We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

748


How would display prime numbers using CL program?

5666


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

1712


how do I declare a minor?

701


What is the purpose of record level identifier?

713


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

743


what is file information data structure?

1346


Explain mdt?

651


What is a record lock error?

1250


what is kids-rpg?

655