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 upon th..

Answer / amuthavalli

Its better to keep all the designations in Compile time
array.And then compare the Physical file datas with the
array(designation).Then write it into a subfile.

read file1
Dow not %eof
Move designation arr(i)
add 1 to i
read file1
enddo

dow j<=i

Read file2
dow not %eof
If arr(j=designation
write subfile
endif
Read file2
enddo

Add 1 to j
Enddo

This logic will work.Try it out.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / ashok

Ffilename if e disk
then on load subroutine part
read the record format
dow not%eof
move the fields
increment 1 to the rrn
write the sflrcd name
read the record format
enddo

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More IBM AS400 AllOther Interview Questions

What is SAA?

1 Answers  


What is primary file? How many primary file can be declared in a RPG program?

3 Answers   IBM, Valtech,


what is data structure?how many types of data structers?

4 Answers  


An rpg program is processing an openquery file.The file is declared in update mode in F spec.Can we update this file? Please explain?

3 Answers  


What is Spool file, Why is it required?

1 Answers  






How to genarate the reports?

1 Answers  


what is externally described file ?

1 Answers   IBM,


How do you grant authority?

1 Answers  


how can a message from a message file appear as a constant on the screen?

1 Answers   IBM,


can a join logical file be updated?

0 Answers   IBM,


what is the command to rtrieve system date? options:1.rtvsysval 2.rtvjoba 3.rtvjobd 4.both a and b

5 Answers  


Job is running in production 24/7 how do u debug that running job ?

1 Answers   Wipro,


Categories