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?

Answers were Sorted based on User's Feedback



Write the subfile logic program for the given concept. Load the data to the subfile depends upon th..

Answer / 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

Write the subfile logic program for the given concept. Load the data to the subfile depends upon th..

Answer / ashok

Ffilename if e disk
then on load subroutine part
read the record format
dow not%eof
move the fields
increment 1 to the rrn
write the sflrcd name
read the record format
enddo

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More IBM AS400 AllOther Interview Questions

How to see all members of a file?

1 Answers  


What is the purpose of USROPN keyword?

1 Answers   CTS,


What is the purpose of "A CSRLOC (F1ROW F1COL)"?

1 Answers  


in conjunction with what other keyword must ovrdta and ovrata be used?

1 Answers   IBM,


What is the purpose of OPNQRYF (Open Query File)?

1 Answers  






Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?

0 Answers  


How can we change the uppercase to Lowercase in RPG?

0 Answers  


what are two types of record are used in subfile?

1 Answers   IBM,


What are the mandatory keywords of sub file?

0 Answers   IBM,


what is the use of UNIQUEUE KEY WORD? what is the difference between PFILE AND REF?

2 Answers  


HOW CAN WE ENTIRE OBJECTS& IT'S TYPE IN PGM?

1 Answers  


how to change job priority when it is running in sub system ?

11 Answers   IBM,


Categories