How I can read and display three fields in the record
format DSPFM1 of the display file,while
one field(using in one file) is NAME which is Key field in
field reference file and another two fields are AGE and ROLL
NO are using another file.
Please send me coding part.
Answer Posted / syam
Changes in above code.
FFILE1 IF E K DISK USROPN ->Reading pf1
FFILE2 IF E K DISK USROPN ->Reading pf2
FDSPF CF E WORKSTN USROPN ->dspy file
C OPEN FILE1
C OPEN FILE2
C OPEN DSPF
C NAME SETLL FILE1
C READ recd1 51
C *IN51 DOWEQ *OFF
C NAME CHAIN recd2 41
C N41 WRITE DSPFM1
C READ FILE1 51
C ENDDO
C CLOSE FILE1
C CLOSE FILE2
C CLOSE DSPF
C RETURN
1.File1 & File2 need NAME key field
2.In dsplay DSPFM1 need Name, Age and Roll filed.
Recd1 = record format of File1 , Recd2 = record format of
file2
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
what is sflinz and sflrna?
what is a keyed physical file?
What is the Difference between command attention key and command function key ?
how to write code for singlepage in sqlrpgle with update ?
what are the basic features of seu?
how to define global parameter in ile ?
what is the difference between packed decimal and zoned decimal?
how you will find an error which is not in the first page of the subfile without using rolldown key?
what are the three types of keywords associated with printer file ?
How can we update a specific field in RPG?
what is a program described file in rpg?
what is the command to know key fields of file?
1. There is a file called Month. Month has 12 members called Jan, Feb, ..., Dec. How to design a rpg code which can access any member and show its content. (User can ask for any member when required)?
how can I predict the performance of my cgis?
in conjunction with what other keyword must ovrdta and ovrata be used?