RPG400 Interview Questions
Questions Answers Views Company eMail

How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?

CSC,

6 28734

In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding

Infinite Computer Solutions,

4 18906

How can we read a particular record from the database file which is not having DDS (Flat File). For example, there are 100 records in the flat file. How can we retrive 15th record in RPG/400 program (Without using CL)

CTS, IBM,

6 21523

1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?

HCL,

8 14192

1) How to declare a file? 2) How to define a display file? 3) How to monitor error messages in RPG? 4) How to find the attributes for subfiles? and what is the DDS for subfiles?

TCS,

2 9818

what is the difference between SETON RT & RETURN?

5 21162

What is the RPG cycle?

CSC,

3 20357

I have a Physical File name 'File1', which is present in two libraries named 'LIB1' & 'LIB2'. These 2 libraries are listed in the library list. Would like to access data from this file from these two libraries using RPG program. How to do this, any idea?

4 11131

The PGMA calls PGMB.PGMB generates a report.The report should contain the called program name(PGMA).How do i get the called program name in PGMB to print it on the spool file?(calling program name should NOT be hard coded or passed as parameter to called program?

6 11135

what is difference between DSPFD and DSPFFD?please give me real senario with good example?

1 18016

Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?

1 4436

Hi, Can anybody give me real sinario for SFLRCDNBR?with example?

2 13941

How to create a key field for a logical file inside RPG?

HSBC,

4 13450

Can somebody tell me that, Is it possible to read all the member of PF without OVRDBF?

6 11749

What is the OPEN and CLOSE accesspath?

CTS,

3 9280


Post New RPG400 Questions

Un-Answered Questions { RPG400 }

what is an online rpg?

1008


how can I tell when to replace the array?

935


how does the rpg element work?

970


what are the key words you must use when using a subfile?

917


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3585


What is file identifier where we can use?

892


what is data area and how it is used in rpg program ?

1059


what is a rpg?

951


What is a record lock error?

1527


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1416


what is the use of sflnxtchg?

1051


what is the procedure and explain about real time scenario.

1728


explain sflclr, sflend, sfldlt, and sflcsrrrn?

1117


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?

750


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

1094