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

using dfu, user will be able to ___________ from physical file?

751


What is dynslt?

971


when do you use f-spec. Continuation line ?

1287


how can u check no of records in a file?

868


what is join logical file?

1384


what are the three line types in rlu ?

1794


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

2777


what does defn do?

801


What is difference between rename and prefix?

778


difference between view and index ?

901


what is the disadvantage of using global variable?

874


Difference Between Interactive & Batch Job?

996


What is the use of jdftval in as400?

1139


hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.

2322


how can you execute a command from within an rpg program without calling a clp program?

1531