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 is elastic and non elastic subrile?

805


WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)

1949


can error messages as a result of a comp, range or values keyword be overridden?

1524


What are the record format field mapping options in cpyf?

835


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

855


what is *iso date format?

862


what is arrival sequence?

1529


What is data structure in as400? What is the use of data structure?

853


how can you specify no duplicate key?

961


WHAT IS FERERENTIAL INTRIGRITY ?

1420


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

2351


how can I control from my cgis the cache of a remote browser?

937


what are all the contents of subfile?

1339


What is file information data structure(infds) in as400?

1246


what are the different commands used in rlu ?

1983