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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)

1846


define the purpose of the %sst function?

1098


how many printer files maximum can be used in single rpg program?

786


what is the use of unique keyword and what level it is defined?

1074


what is the purpose of dynslt keyword?

1203






maximum number of subfiles that can defined in a rpg program for one display file is?

1238


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

759


in which specification the report layout can be defined?

1136


can you display a empty subfile?

886


how many levels are there in a physical file?

1177


which single rpg opcode performs both setll and reade?

1255


how can you specify no duplicate key?

799


how to pick up the changed records every time in a subfile after the first change made ?

1234


what is the maximum number of records you can specify in a display file?

1311


Difference Between Ca & Cf?

791