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

1.Can any body share me about thease opcodes with example please.Im new for AS/400.Could u please tell me in real senario? 1.TESTN, 2.EVAL 3.EVALR, TIME, 4.MONITOR 5. ENDMON 6.ON-ERROR 7.COMMIT ROLLBACK?

1 Answers   CSC,


One of the job in subsystem is in Running status,expected time to complete this job is 2 minutes. But from last 5 -10 minutes this job is still in running status....What are the possible reasons...and What are the actions i need to perform to check this...?

4 Answers  


Delete FileName at first statement in RPG.

1 Answers  


How can we receive values from a called procedure in CL?

1 Answers   IBM, NTT Data,


difference betwen keywords and opcodes

3 Answers  






How to read data from Nth member of a physical file containing some X number of members in it? "Provided member names are unknown"

4 Answers  


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

6 Answers  


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?

8 Answers   HCL,


suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis

1 Answers  


How we will read call stack?

4 Answers  


Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any

2 Answers   Satyam,


What you have to do in the display file when you are using message subfile?

1 Answers  


Categories