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
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 |
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 |
what is code for reading member in rpgle when wehave like extmbr(*all) so we have 3 members in *all then i want to read first record in 2member
under given circumstances, my cgi should link to another site. How to implement this?
What controls which printer a report goes to?
how can you specify no duplicate key?
what is the clp command to access a query/400?
Can we add or remove the module object from service Program..and how...?
what does check opcode is used?
What is RETURN CURSER LOCATION in subfile?
what is match field indicator?
is it possible to create a physical file without dds?
what is the use of data structures?
how to get the particular field's records in CL without using OVRDBF,OPNQRY? tell me the concept?