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
what is the function of rlu ?
how can I give more performance to some selected pages?
how many files can be defined in f specs?
what is a physical file?
Difference Between Skip Before & Space Before?
how do you read data area in an rpg program?
how to define global parameter in ile ?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
what is rpg fixed logic cycle?
what are the uses of factor1, factor2 and result field for the rpg operation code parm?
How to Define a Procedure in RPG?
maximum number of subfiles that can be active for a single file is?
How can we change the uppercase to Lowercase in RPG?
can you display a empty subfile?
Difference Between Call & Sbmjob?