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

what is the maximum number of parameters allowed in rpg?

1 Answers   IBM,


WHAT IS THE DISPLAY CMD FOR DATAQ, HOW IT CAN BE USED?

2 Answers  


what are the different opcodes available in rpg for database access ?

1 Answers   IBM,


what is the version of os/400 that we have?

1 Answers   IBM,


what is the command used to invoke rlu ?

1 Answers   IBM,






what does the opcode free do?

1 Answers   IBM,


When does the DFT keyword in PF be used?

1 Answers  


what is the purpose of indicators in rpg?

1 Answers   IBM,


What is dynslt?

0 Answers  


pf named karthik 3members jan feb mar cmd must executed create mbr ar ap

0 Answers  


Q.1.What is differences in STRDBG and STRISDB debugging commands? 2.Where we should use STRDBG and STRISDB Debugging commands?

6 Answers   CTS,


how does the runqry show the output?

0 Answers   IBM,


Categories