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
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
which are control break logic indicators?
can we use ASCII ,CDUP,SENDPASV commands in SFTP?
what is subfile?
What is the default access path of a file?
How to avoid using indicators in ile ?
which cl command can be used at program execution to redirect the file named in an rpg program?
if we tried to move year part of *iso date into a field of length 3, what will happen ?
is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?
Write a logic program for knowing the repeated number of a vowels in a given program?
where can you specify an indicator in lokup operation?
how may a cgi control duplicate inputs?
how to validate input values in display file ?
Apart from opening of a file do we have any other use of USROPN?
what if my system I runs with system value qccsid 65535?