Write the subfile logic program for the given concept. Load
the data to the subfile
depends upon the designation where designation is not a
key field?

Answers were Sorted based on User's Feedback



Write the subfile logic program for the given concept. Load the data to the subfile depends ..

Answer / preethi

Read the file and add a IF condition for the designation. If
true, then write the record in subfile.

Is This Answer Correct ?    2 Yes 0 No

Write the subfile logic program for the given concept. Load the data to the subfile depends ..

Answer / shalini

we can also use scan wilth if logic :
designation name scan subfile record formatname var1
if var1=1
eval in01=*on
write pf record format name

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More RPG400 Interview Questions

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 Answers  


How to set on/off a group of indicators in a single statement?

3 Answers  


i have 1000 records in pf.what are all the ways to read a particular name records in rpg?? ie.. in pf i have a name called demo appeared around 52 times hw will we read this particular records in rpg/400?.

11 Answers   IBM,


are there any useful c runtime apis that I can call from rpg iv?

0 Answers   IBM,


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

6 Answers   CSC,






How to update selected fields from pf without using update opcode. How to read all member in Rpg-3,without using any cl command?

8 Answers  


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


How to search particular records from the database file in rpg?

1 Answers  


What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?

2 Answers  


Delete FileName at first statement in RPG.

1 Answers  


can any body correct the following code? Following a procedure which returns the maximum of two numbers.Correct the following code. P GETMAX B D GETMAX PI D NUM1 35 0 D NUM2 45 0 C IF NUM1 > NUM2 C RETURN NUM1 C ELSE C RETURN NUM2 C ENDIF P GETMAX E

1 Answers  


Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


Categories