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

which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?

1 Answers  


How would display prime numbers using CL program?

0 Answers   Hexaware,


Can we have a Physical file without any member ? Please let me know

12 Answers  


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  


i would like to know under what circumstance the object will get locked on AS400.

5 Answers   IBM,






what is flat file?

1 Answers   IBM,


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

0 Answers   Wipro,


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

1 Answers  


How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...

2 Answers  


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

1 Answers  


There is a excel sheet having details of Old account number and new account number. I need to update these details in my AS400 files. i.e. all the records having old account number should be replaced with new account number. There can be 100 or 200 or 300 PFs...no fix files known. how can we do this?Solution should be performance oriented

3 Answers   Cap Gemini, IBM,


can anyone say,what is the use of operation extended H/N/P?

2 Answers  


Categories