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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what does defn do?

704


what key word is used when screen is re-display?

735


how can you check for a records existence without causing and i/o (chain/read)?

1490


what are the basic features of seu?

692


what is message file?

692






define what a data area is along with a brief example of what it may be used for?

1102


where can you specify an indicator in lokup operation?

1313


Write a logic program for knowing the repeated number of a vowels in a given program?

3417


can a indexed file be accessed in arrival sequence in rpg program?

1086


what are all the contents of subfile?

1125


what is the difference between seton lr and retrn?

1438


What is %CHECK?

929


In AS/400 projects in Companies whats the meaning of production support team.what production support involves.also what work does development,maintenance involve what are the other teams or processes that are available for as400 project.

8663


What is access path in as400?

988


Write a CL program which will run a batch job at 1 am every night

761