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

I am Pasting Code.
FFILE1 IF E K DISK USROPN ->Reading pf
FDSPF CF E WORKSTN USROPN ->dspy file

C OPEN FILE1
C OPEN DSPF
C SETLL FILE1
C READ FILE1 51
C *IN51 DOWEQ *OFF
C WRITE DSPFM1
C READ FILE1 51
C ENDDO
C CLOSE FILE1
C CLOSE DSPF
C RETURN

it will show all the records from file undil file ends.
if you need ILE RPG Free fromat code pls post again your
request

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can you have multiple key lists for a single file ?

997


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

788


Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?

598


define what a data area is along with a brief example of what it may be used for?

964


what the purpose of ovrdta, ovrata keywords?

1179






what is message file?

604


define the purpose of the *cat function?

984


what is the function of crtdupobj command?

1158


How can we arrange duplicate records in a file?

604


what is the favicon.ico request that my site receives now and then?

644


can we define multi-dimensional arrays in rpg ?

934


How to Define a Procedure in RPG?

1224


what are the different types of arrays available in rpg ?

965


what is the sequence when using cursor?

607


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

1017