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
how many levels are there in a physical file?
Using %check we are checking monika in mona what is output? What is %SCAN?
What Is Default Data Type (if You Define Decimals '0') In Physical File?
how to declare a constant variable in the freeformat?
how do you know that records are locked?
some special characters I key in my html source members show different on my web pages. Why? How can I solve this?
If i change any file through application after entering data , how to check which file is updated through applications . For call stack we takes esc 3 then we chose 11..But What is answer of below qtn..?
define the purpose of the *bcat function?
What are the mandatory keywords of sub file?
Difference Between Interactive & Batch Job?
what is the use of data structures?
what would be the effect on the field where reverse image, underline and highlight display attributes are active ?
which are the relational operators in rpg?
when are the referential constraints executed?
How to convert a spool file to PDF file in AS400?