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


Please Help Members By Posting Answers For Below Questions

what is sflinz and sflrna?

1017


what is a keyed physical file?

1005


What is the Difference between command attention key and command function key ?

790


how to write code for singlepage in sqlrpgle with update ?

2367


what are the basic features of seu?

613






how to define global parameter in ile ?

633


what is the difference between packed decimal and zoned decimal?

2257


how you will find an error which is not in the first page of the subfile without using rolldown key?

562


what are the three types of keywords associated with printer file ?

1012


How can we update a specific field in RPG?

932


what is a program described file in rpg?

1056


what is the command to know key fields of file?

623


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)?

407


how can I predict the performance of my cgis?

650


in conjunction with what other keyword must ovrdta and ovrata be used?

921