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 elastic and non elastic subrile?
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)
can error messages as a result of a comp, range or values keyword be overridden?
What are the record format field mapping options in cpyf?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
what is *iso date format?
what is arrival sequence?
What is data structure in as400? What is the use of data structure?
how can you specify no duplicate key?
WHAT IS FERERENTIAL INTRIGRITY ?
is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.
how can I control from my cgis the cache of a remote browser?
what are all the contents of subfile?
What is file information data structure(infds) in as400?
what are the different commands used in rlu ?