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 the sequence when using cursor?
what are the different opcodes available in rpg for database access ?
What is the purpose of the following? FORDHDR1 IF E K DISK ORDHDRF KRENAMEORDHDRF1
what is *inzsr used for?
writing an sql statement from selecting records from two files using single statement and nested select statement.
Define the purpose of the following code (If you know, how would this be written in RPG ILE) HI LO EQ C *IN66 DOUEQ *OFF C KEY1 CHAIN FILEA 90 66 C 66 CALL PGM1 PRM C ENDDO
what is the difference between packed decimal and zoned decimal?
How can we create subsystem in as400?
how do you detect unused spool storage?
what is elastic and non elastic subrile?
What is the difference between array and a multiple occurrence data structure?
CAN WE INSERT FIELD IN PHYSICAL FILE BY USING OPNQRYF?