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

In Which Specs Arrays, Tables & Constants Are Defined?

0 Answers   IBM,


Can be OVRDBF command mentioned after OPNQRYF command in CL?

1 Answers  


what is join logical file?

1 Answers   IBM,


For AS/400 Freshers good website is

3 Answers   HCL, HP,


Can we debug the MSGW JOBS?

0 Answers  






What is the difference between Physical and Logical files ?

1 Answers  


i have recently moved to hyd. i would like to know which is the best institue to learn AS400. are there any in ameerpet? thanks.

4 Answers  


What is the use purpose of CRTCMD?

1 Answers  


CAN WE INSERT FIELD IN PHYSICAL FILE BY USING OPNQRYF?

4 Answers  


which are the query selection criteria, which can be given in a query?

0 Answers   IBM,


What is the function of SEU ?

1 Answers  


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

1 Answers  


Categories